(This version of Aug. 24 story corrects spelling of party member’s name to Entsch, paragraph 10)

CANBERRA (Reuters) - New Australian Prime Minister Scott Morrison promised generational change in the warring Liberal party on Friday, seeking to end an internecine battle that has scarred the conservative government ahead of an election due by May 2019.

Morrison, who was treasurer under outgoing prime minister Malcolm Turnbull, emerged the surprise winner in a three-way challenge for the leadership of the Liberal party brought on by a right-wing rival this week.

Stepping up to become Australia’s sixth prime minister in less than 10 years, Morrison has inherited leadership of a coalition between the Liberal and National parties whose one-seat majority will have to be defended when a by-election is held for a safe Sydney seat that Turnbull is set to vacate.

“Our job ... as we take forward this mantle of leadership as a new generation, is to ensure that we not only bring our party back together, which has been bruised and battered this week, but that ... we bring the parliament back together,” Morrison said in his first appearance after his party-room victory.

“The new generation of Liberal leadership is on your side,” he told Australian voters, many of whom are angry and frustrated with a decade of political instability in which no sitting prime minister has lasted a full term.

Morrison was sworn into office shortly after 6 p.m. (0800 GMT) on Friday.

He ruled out calling a general election in the near term but will still face an early electoral test, as Turnbull is set to resign from parliament, forcing a by-election in a Sydney seat that has been a safe seat for the Liberals.

Turnbull blamed his demise on “vengeance, personal ambition, factional feuding” in his party, led by conservative lawmakers including former prime minister Tony Abbott, the man he toppled in a party-room coup in September 2015.

“Australians will be dumbstruck and so appalled at the conduct of the past week,” said Turnbull.

Liberal party member Warren Entsch said after the leadership vote: “This revolving door of prime ministers has got to stop”.

The Liberal party is the senior partner in the Liberal-National coalition government that has consistently trailed opposition Labor in opinion polls in recent months. Bookmakers on Friday had Labor a favorite to win the next poll.

(For a graphic on Australia politics click, tmsnrt.rs/2OZsms0)

BREAK FROM THE PAST

Morrison’s victory marks the chance for a break from a decade of leadership clashes between Turnbull and Abbott in both government and opposition, but ideological divisions in the party over issues such as climate change, energy policy, immigration and even globalization remain stark.

Indeed, after Foreign Minister Julie Bishop was eliminated after the first round of the leadership ballot, Morrison only defeated Peter Dutton, his more conservative rival, by 45 votes to 40. Three changed votes would have altered the result.

Dutton was at the center of the political turmoil this week. Seeking to head off his push for the top job, Turnbull unexpectedly called a leadership vote at a Liberal party meeting on Tuesday and won 48 to 35.

Slideshow ( 14 images )

The victory margin was seen as unconvincing and Dutton and his influential supporters regrouped and pressed for a second vote, and seemed to be building momentum. Morrison emerged on Thursday as a candidate and quickly won favor with moderates.

While originally from the conservative wing of the Liberal party, Morrison is widely seen as a centrist and has rejected prominent right-wing policies, including limits on immigration.

“He is the compromise candidate, a bridge between the conservative and moderate wings of the party,” said Haydon Manning, a political science professor at Flinders University in South Australia state.

“He can heal the wounds that threatened to fracture the coalition government and allow the government time to prepare for an election,” he said.

Slideshow ( 14 images )

But Morrison faces a series of policy decisions that could reopen old wounds within the government, including an impasse on energy, a topic that acted as a catalyst in Turnbull’s demise.

Turnbull this week sought to placate conservative anger by stripping requirements for reducing greenhouse emissions from his centerpiece energy policy but the influential right-wing government lawmakers remain opposed to the policy.

Morrison will therefore need to find a way to meet Australia’s commitment to reduce emissions by 26 percent from 2005 levels by 2030 under the Paris accord without stoking old divisions, a challenge Turnbull said would be difficult.

“The truth is that the coalition finds it very hard to get agreement on anything to do with emissions,” said Turnbull.

FINANCIAL MARKETS COMFORTED

Morrison’s victory was welcomed by financial markets, which have been shaken by the political instability. Australian shares edged higher on Friday, rebounding after three days of losses that saw the benchmark fall 1.5 percent.

“PM Morrison is the most market-friendly option,” said Annette Beacher, Chief Asia-Pac Macro Strategist at TD Securities in Singapore.

However, Beacher said markets would be looking to see whether Morrison can narrow the gap with opposition Labor.

“The skew toward the Labor party at this stage ensures they will form government at the next election,” she said.

It was also hoped Morrison would end the political instability that has plagued Australia.

“The political turmoil of the past decade has come at the cost of our global competitiveness ... the business community needs policy certainty to promote investment and improve business confidence.” said Tony Johnson, chief executive officer of Ernest & Young.