SYDNEY (Reuters) - Support for Australia’s conservative government has risen to its highest levels in more than six months, a widely watched poll showed on Monday, boosting Prime Minister Scott Morrison’s re-election prospects ahead of a national poll due by May.

FILE PHOTO - Prime Minister of Australia Scott Morrison arrives for APEC CEO Summit 2018 at Port Moresby, Papua New Guinea, 17 November 2018. Fazry Ismail/Pool via REUTERS

Morrison’s coalition government now trails the opposition Labor Party by 49 percent to 51 percent on a two-party preferred basis under Australia’s preferential voting system, where votes from minor parties are redistributed, a Fairfax-Ipsos poll showed.

The last Fairfax-Ipsos poll in December showed the government trailing by 8 percent.

While still on course for an election defeat, the poll is the best result for Morrison’s government since the ousting of former Prime Minister Malcolm Turnbull in August 2018 in a backbench revolt.

Despite voters remaining angry at the removal of his predecessor, Morrison has been able to profit from an embarrassing defeat in Australia’s House of Representatives last week.

Australia’s Labor Party and independents voted to soften the country’s hardline immigration laws to give doctors the right to transfer asylum seekers from two Pacific detention centers to Australia if they need medical treatment that they are unable to get on either Papua New Guinea or Nauru.

Some 1,000 men and woman have been detained by Canberra for six years after they were intercepted at sea attempting to travel to Australia, a policy that has been widely condemned internationally.

But the policy remains popular at home, and Morrison has sought to use the amendment to frame the looming election as a referendum on national security.

The issue of immigration has several times played a key role in the outcome of Australian elections.

In 2001, Australia’s then conservative Prime Minister John Howard refused permission for a Norwegian ship carrying 433 rescued refugees to enter Australian waters.

Howard, who was trailing in the polls at the time, won re-election and held onto power until 2007.