Disclosed herein is a compound of Formula (I) for inhibiting Bcl-xL and treating a disease associated with the undesirable Bcl-xL activity (Bcl-xL related diseases), a method of using the compounds disclosed herein for treating tumor or cancer, and a pharmaceutical composition comprising the same.