The invention provides compounds, compositions and methods to treat certain inflammatory conditions or cancers by administering a compound that inhibits PI3K isoforms, wherein the compounds are optically active atropisomers. It provides optically active stereoisomers of a class of pyrazole-containing compounds, which are useful for these methods, and provides methods to obtain these compounds as well as pharmaceutical compositions containing these compounds.