A terrestrial planet is a rocky world with a solid surface primarily composed of silicate minerals and metals, distinct from gas or ice giants by its compact, dense structure and minimal volatile envelope.