An automation can be used to make a certain "event"(condition), trigger another action (Task)
A condition can be anything from motion detection, to a certain time, a certain temperature, sunrise.
Then you can make this condition turn on lights, turn on smart plugs, make a siren sound or a combination of multiple tasks.