A guinea pig's diet should mainly consist of fresh hay, high-quality pellets, and a variety of fresh vegetables. Ensure they have a constant supply of water and avoid feeding them sugary or fatty treats.