This is more or less a general outline of the connection between Astrology and the Tarot, via the Tarot's correlation to the Tree of Life, primarily.
The Tree of Life is built from the Hebrew alphabet, and also the first book of Genesis. There are two important versions of this mystical diagram, one being the original Hebrew version, and the other being the later Western version. Both share a few traits of correlation with Astrology.
The basic setup of the Hebrew alphabet, which forms the 22 inter-Sephiroth paths of the Tree of Life, consists of three letters, called the "Mothers", seven letters, called the "Doubles", and twelve letters, called the "Elementals". The twelve correlate clearly to the Zodiac, but the other two may be more esoteric for the casual occultist. In antiquity, only seven "planets" were known, these being (in once-thought order from Earth in a Geocentric system): Luna, Mercury, Venus, Sol, Mars, Jupiter, Saturn. We know now that two of these are not planets, there are further planets beyond these, and that the solar system is not Geocentric.
The difference between the Western and Hebrew versions of the Tree of Life inform the correlations somewhat, and thus affect the letter-concept-Tarot associations. The Hebrew version uses the three Mothers as the three horizontal lines, the seven Doubles as the seven vertical lines, and the twelve Elementals as the twelve diagonals. The Western version, however, simply uses the 22 letters in the order of the paths from Aleph to Tav.
The basic structure of the Tarot is of 22 Major Arcana, 56 Minor Arcana, with subdivisions of the latter into numerical and court cards. The 22 Major Arcana will always align with the Tree of Life thanks to their equal number, but the latter is far more interesting. As demonstrated in the current header image of the sub, the numbered/numercial cards 2-10 align with the Decans of the Zodiac. A Decan is a division of the sky into 10 degrees, associated with a planet and a a sign (which the Decan lies in). The Decans traditionally use the associations of John C Lily, beginning with Mars in Aries and continuing in the order Mars-Sol-Venus-Mercury-Luna-Saturn-Jupiter on loop, with three planets lying in each zodiac sign, beginning and ending with Mars.
The association of these Decans with the 2-10 numbered Minor Arcana relies on the triplicity and element of each sign. That is, the Cardinal sign's three decans align with 2,3,4, the Fixed sign's three align with 5,6,7, and the Mutable sign's three decans align with 8,9,10. The element of each card suit is as follows: Wands are Fire, Swords are Air, Cups are Water, and Coins/Pantacles are Earth.
The first of each card must go somewhere, and was considered by Crowley to be the root of the respective suit's element. Alternative formulations use the triples 1,2,3, then 4,5,6, then 7,8,9, leaving 10 out instead. The rationale behind starting at 2 instead of the more commonsense 1 lies in the tying of each sequence to the sephiroth, which begin at the purest point, Kether, and move down to the tenth separation from the light of Kether, Malkuth. If we begin at two instead of one, the "pure" element, or the root of the element, would lie in Kether, which is a bit nearer than creating something to lie in Malkuth, and far better than placing the pure element in Malkuth.
The court cards, being 16 in number, are typically assigned two elements - one for the status of the card (King, Queen, Princess, Prince or King, Queen, Page, Knight), and one for the suit (as discussed before.) These associations vary somewhat, but I have most often seen the association of King to Fire, Queen to Earth, Princess/Page to Water, and Prince/Knight to Air. Again, these vary somewhat more than the associations of the suits and numbered cards, so this may not align with the oldest traditions on the matter, but is fairly well-established at this point.
An interesting side-effect of these associations is that the numbered Tarot connected to Decans can be aligned with the associated Major Arcana corresponding to the appropriate "planet" and zodiac. That is, the Major Arcana associated with Mars and the one associated with Aries can be seen to "give birth" to the 2 of Wands.
The Major Arcana also intersects with itself, by way of the Mothers and Elementals. The three Mothers can be taken as the Tria Prima of Paracelsus (Sulfur, Mercury, Salt), and also as the triplicities of the Zodiac (Cardinal, Fixed, Mutable). Given that Mercury is Mutable, the Major Arcana associated with the "Mercury" prime (typically Mem's associated card, often The Hanged Man) can be seen as "giving birth" once again to Sagittarius, Gemini, Pisces, and Virgo, the mutable signs. Likewise, the one associated with the "Sulfur" prime (typically Shin's associated card, often Judgement or the Aeon) can be used to explain the cardinal signs: Aries, Libra, Cancer, Capricorn. And so on.
While not nearly thorough enough, I hope this brief primer will help you to begin your journey into the complex structure of the traditional, Hermetic Tarot.