Spray the worm gear on all sides with degreaser, as well as the wheel gear that engages with the worm gear. For efficiency, you can clean both gears at the same time. If the gears are particularly filthy, place rags beneath it on the ground or pavement to catch the dripping mess. Let the degreaser work for 15 minutes.
Wipe the gears with rags to remove as much dirt as possible.
Spray the degreaser on the gears once more. Scrub with a nylon brush to clean deep into the threads, where grime will cause the most damage.
Apply a lubricant recommended by the manufacturer of the gate opener, working the lube into the threads of the worm gear and the teeth of the wheel gear.
Activate the opener switch to open and close the gate several times. This works the lubricant into the gears as you test the operation.