Sildenafil citrate works by inhibiting the enzyme phosphodiesterase type 5 (PDE5), which leads to increased blood flow to the penis. This increased blood flow helps to relax the smooth muscles in the penis, allowing for an erection to occur when sexual stimulation is present.