In this chapter we summarize current knowledge of the internal structure of giant planets. We concentrate on the importance of heavy elements and their role in determining the planetary composition and internal structure, in planet formation, and during the planetary long-term evolution. We briefly discuss how internal structure models are derived, present the possible structures of the outer planets in the Solar System, and summarise giant planet formation and evolution. Finally, we introduce giant exoplanets and discuss how they can be used to better understand giant planets as a class of planetary objects.