Disclosed are sulfonamide compounds of Formula (I): or stereoisomers, N-oxides, prodrugs, or pharmaceutically acceptable salts thereof, wherein ring A, R
1
, R
2
, R
3
, R
4
and R
5
are defined herein. Also disclosed are methods of using such compounds in the treatment of conditions related to CYP17 enzyme, such as cancer, and pharmaceutical compositions comprising such compounds.