Microcantilevers modified by a monolayer of azobenzene molecules bend up and down periodically, switched by a 365 nm UV light, as a result of the conversion of the two configurations of azobenzene molecules in the monolayer.