The Glostrup court said Wednesday that the man fondled the teenagers while sleeping in his suburban Copenhagen apartment after a party in 2011.
The girls awoke and interrupted the man, and later reported him to police.
But the court cleared the 31-year-old of sex crimes charges, saying medical tests show he suffers from "sexsomnia" in which a person engages in sexual activity while asleep.
Michael Laub, a Danish sleep specialist who wasn't involved in the case, said it's a rare but widely recognized sleep disorder.
The defendant said he had no recollection of what happened.
Prosecutor Martin von Buelow said he wouldn't appeal the ruling.
More Nation & World Headlines
Former Sen. Jim Webb to run for president 1:08 p.m. Church fires not usually caused by arson 11:23 a.m. Christie's favorability under water in Iowa White House lifts photo ban during tours Congregants, protesters gather at Church of Cannabis U.S., Cuba to resume ties on July 20 How to keep your pets safe over July 4 Californians cut water usage 29 percent
Our new comment system is not supported in IE 7. Please upgrade your browser here.