The two-alarm fire was reported around 2 a.m. at a mobile home in the 1000 block of Borregas Avenue, Capt. Carl Rushmeyer said.
The unit was at the corner of the entrance to Cape Cod Village, a mobile home community for seniors ages 55 and older, Rushmeyer said.
Firefighters responded and extinguished the blaze about 20 minutes later. A man believed to be in his 40s had come out of the home and told authorities that he lived in the unit with his parents, Rushmeyer said.
The names of the two people who died have not been released, Capt. Jeff Hunter said.
Santa Clara County fire investigators responded to the scene to assist in determining the cause of the blaze, Hunter said.
The flames did not cause any other injuries and did not spread to other units at the mobile home community, but excessive heat broke windows at a home next to the involved unit, according to Rushmeyer.