Complex sentence: Khawaja Bakht Jamal taught Alqash all aspects of Astrology during this period both got close to each other and became good friends.
Split into simpler sentences: Khawaja Bakht Jamal taught Alqash all aspects of astrology. During this period they got close to each other and became good friends.