Prime Minister Malcolm Turnbull has retained his Liberal leadership after Home Affairs Minister Peter Dutton contested his position.

Turnbull defeated Dutton in a 48-35 spill vote.

Peter Dutton has since resigned from cabinet.