Danes on Thursday voted the socialist opposition coalition into power, ushering in the country's first woman prime minister.

With 99.7 percent of the total votes counted, the center-left Red Bloc headed by Social Democratic Party Chairman Helle Thorning-Schmidt won 92 of all 179 seats in the Danish parliament.

A total of 90 seats are needed to obtain an absolute majority in the Folketing, or Danish parliament.

Thorning-Schmidt, 44, will thus become the first female prime minister in the country's history.

Incumbent Prime Minister Lars Loekke Rasmussen's center-right coalition, in the meantime, won 87 seats, ending its ten years in office since 2001.

Rasmussen acknowledged the defeat late on Thursday, saying he would go to Denmark's Queen Margrethe II at 11 a.m. Friday local time, to officially tender his government's resignation.

VietNamNet/Xinhuanet