An electrician installs, maintains, repairs, and troubleshoots electrical systems in buildings and structures. They work with various electrical components, including wiring, control systems, and lighting systems. Electricians also ensure safety and compliance with building codes.