there are screen lock programs, and it also may be included in your ROM. Go to Settings->Location or Settings->Security or Settings->Locations &security settings depending on your ROM, and see if there is an option there.
Need more info buddy. What ROM are you using? Some ROMS come with it. You can do what Pete said as well if it is enabled on your ROM. Or download an app.