With all mainland votes counted, the centre-right group led by ex-PM Lars Lokke Rasmussen beat PM Helle Thorning-Schmidt`s centre-left coalition, although her party is the largest.
Ms Thorning-Schmidt has now stood down as Social Democratic Party leader.
The right-wing, anti-immigration Danish People`s Party (DPP) will become the second-largest in parliament.
More about: