After military service in the Soviet army in 1985, he studied law at the Baku State University. During his studies he established and headed the Yurd (Homeland) movement which supported democratic reforms. In November 1988, Yurd, supported by intellectuals, organized student meetings in Baku to protest the communist regime.