Bangladesh's attorney general quit on Wednesday in a move believed linked to the interim government's drive to depoliticise the administration following a crisis that forced the cancellation of elections.
The country's most senior law officer resigned for personal reasons, an official said.
The main opposition Awami League, however, had earlier called for his resignation, accusing him of bias against the party that could affect its chances in the elections.
"Attorney general AJ Mohammad has resigned from his post. He handed his resignation to the president on Wednesday due to personal reasons," deputy attorney general Helauddin Molla told the agency.
Bangladesh's President Iajuddin Ahmed stood down as head of the former interim government, cancelled the elections and imposed a state emergency on January 11.
The opposition had earlier announced a boycott of the polls scheduled for January 22, alleging that they had been rigged in favour of the outgoing Bangladesh Nationalist Party (BNP).
The party and its allies also claimed that the entire administration had been politicised in favour of the BNP.
The new interim government has agreed to implement a string of reforms demanded by the opposition, including the creation of a new voter list and assurances that top civil servants will stay politically neutral.