In 1990, as Bosnia was preparing to secede from Yugoslavia, he was elected to the Bosnian parliament and became a leading member of the Bosniak-dominated Party of Democratic Action. He temporarily left politics in 1992 after the beginning of the Bosnian War, in order to serve as a medical doctor in Bihać.