CAIRO — A political dissident from Bahrain, who was recently released from prison after the government there faced international outrage, said on Saturday that she had fled the country after she was threatened again with detention.

The dissident, Zainab al-Khawaja, had been one of the last vocal pro-democracy activists remaining in the country amid a five-year government crackdown on dissent. Since facing an uprising in 2011, Bahrain’s ruling monarchy has imprisoned prominent activists and opposition leaders or stripped them of citizenship. Other dissidents have either quieted their criticism of the government or left the country.

Ms. Khawaja, 32, a dual citizen of Bahrain and Denmark who was imprisoned along with her infant son, was released on humanitarian grounds in May, and left Bahrain for Denmark last week. She said in an interview that Bahraini officials had warned the Danish Embassy that if she did not leave, she would be rearrested within months and separated from her son.

“I have been arrested 11 times,” she said in a telephone interview from Denmark. “I have done all I can do inside of prison.”