The present invention provides compounds of Formula (I), pharmaceutical compositions thereof, and method of using the same in the treatment or prevention of diseases mediated by the activation of β3-adrenoceptor.