An excavator is a machine used in construction for digging, lifting, and moving earth or materials, making it essential for building and mining works.