Why dogs are tameable and wolves aren't

It's long puzzled biologists why dogs have become man's best friend while wolves remain fiercely wild, when genetically the two are so similar.