Dynein is a protein that acts as a molecular motor, converting chemical energy (from ATP hydrolysis) into mechanical energy to generate movement. In cilia and flagella, dynein molecules attach to microtubule doublets and use their motor activity to slide the microtubules past each other, causing the characteristic bending motion of these structures.