Technology accelerator Y Combinator has given seed funding and mentorship to more than 600 early-stage companies in the last decade, most offering high-tech fixes to problems besetting the Internet or the business world.

But Y Combinator is now doing something it has never done before--backing a young pharmaceutical company, one that is working on a vaccine for HIV.

The...