Tidal power harnesses the energy from ocean tides by converting it into electricity. It works by building structures like dams and turbines near coastal areas that capture the kinetic energy of the tides flowing in and out caused by the gravitational pull of the moon. As the tides rise behind dams, gates open to allow water in and then close as the tides recede, trapping water in basins at a higher level where traditional hydropower technologies can generate electricity from the potential energy.