Astrology works by analyzing the positions and movements of celestial objects to gain insights into human behavior and events.