Megalis 10 Tablet belongs to a class of medications known as PDE5 inhibitors. It functions by relaxing the blood vessels in the penis, facilitating the inflow of blood, and enabling the occurrence of an erection when sexually aroused. It's important to note that this medication will only be effective in achieving an erection when sexual stimulation is present.