An undergravel filter works by sucking your sediment into the gravel bed which must be deep enough to catch it and coarse enough to allow the particles entry, there the detritus is broken down and eaten by bacteria. It works much like a overside filter but without the pre sceening floss or pad. Many people wreck the utility of the process by cleaning the substrate to thoroughly. Simply siphon off the loose particles from the surface of the gravel and try to disturb the gravel bed as little as you can. They are admittedly less efficient than other types of filters but once established they work well.
I prefer to use them with an additional over side filter as well. the two compliment each other and if one fails the other gives you time to fix it. Together they polish the tank water nicely.
By the way, hello and welcome to MFK.