Sildenafil is the generic version of Viagra and has the same active ingredient, making it equally effective in treating erectile dysfunction.