Polish PM Beata Szydlo replaced by finance minister
Polish Prime Minister Beata Szydlo has resigned, hours after surviving an opposition no-confidence motion.
She will be replaced by Finance Minister Mateusz Morawiecki, the governing Law and Justice Party said.
The BBC's Adam Easton in Warsaw says there had been growing speculation that party leader Jaroslaw Kaczynski wanted to replace Mrs Szydlo.
Insiders said a firmer hand was needed to steer the party through to Poland's parliamentary elections in two years.
Mrs Szydlo's resignation was announced hours after an opposition motion of no-confidence in her was overwhelmingly defeated in parliament.
Despite her survival, reports persisted that she was to be replaced by her own party before the end of the day.
"The Law and Justice (PiS) party political committee has proposed the candidature of Mateusz Morawiecki for prime minister," party spokeswoman Beata Mazurek told reporters.
Kaczynski happy to stay in back seat
Analysis by Adam Easton, BBC News, Warsaw
It has been suggested to me that Jaroslaw Kaczynski forced Mr Morawiecki on the party despite some opposition because he wants to concentrate on the economy and warming up relations with the West in the second half of the government's term.
The European Commission, the Council of Europe, the UN and to some extent, Washington have all criticised the Polish government for endangering the rule of law with its plans to reform the judiciary.
Mr Kaczynski is happy to retain his back seat co-ordination role and he wants a prime minister that can better co-ordinate economic policy. Mr Morawiecki, a fluent German and English speaker, is respected and has been the brains behind the government's economic policy as its finance and development minister. He may also pull in some more centrist, middle-class voters.
He could be something of a risk though. As a former banker, he's perceived as part of the elite, whereas Mrs Szydlo was popular and widely seen as an ordinary hard-working Polish woman.
On Thursday she scolded opposition Civic Platform MPs in parliament saying: "You were the government for the elite, we are the government for ordinary Poles."
It's perhaps ironic, then, that Mr Morawiecki at one time served as an economic adviser to Donald Tusk, the head of that "government for the elite".
Mrs Szydlo did not give a reason for resigning but said on Twitter: "The last two years - it was an extraordinary time for me and the service to Poland and Poles was an honour."
Mr Morawiecki is credited with boosting a sales tax revenue that helps pay for popular social policies such as child subsidies.
Correspondents say he represents the younger, moderate face of the party and may help improve Poland's tarnished image abroad.
Some other EU states, including Germany, have been dismayed by the Polish government's refusal to accept refugees under an EU relocation scheme and by its attempts to refashion the media and judiciary.