Thermal energy is the total internal energy of an object due to the kinetic energy of its particles. It is directly related to temperature and plays a crucial role in understanding heat transfer, phase changes, and the behavior of matter at different states.