The effectiveness of mothballs as a repellent for reptiles -- including lizards -- and rodents is not verified. Mothballs work by sublimating, which means changing phase directly from solid to gas without becoming liquid. They contain either naphthalene or paradichlorobenzene, both of which are toxic, so it is best to use them where they will not be found by small children, pets or other animals. It isn't necessary to resort to mothballs; there are other steps you can take to deter lizards and other pests from entering your home or garden.
Place mothballs on window sills to deter lizards from coming inside. Seal cracks with caulk, if there are gaps in the seal of the window.
Scatter a few mothballs near entrances and doors to deter lizards and other pests from entering the home. The smell of the mothballs may repel lizards and snakes. Put the mothballs in an open container, if you do not want to scatter them on the ground.
Put one to three mothballs in potted plants to repel lizards and other pests. Replenish the mothballs when the rain washes them away.
Place mothballs about one foot apart in garden areas or other perimeters. Place mothballs around the edges of the garden, or up and down the rows.