The nature of both pets is as different as chalk and cheese. You cannot keep them in the same enclosures under any circumstances. Guinea pigs are social animals and active during the day. On the other hand, hamsters, being nocturnal pets, are better when alone and are primarily active during the night.