The present invention relates to a Rho-associated protein kinase inhibitor of formula (I), a pharmaceutical composition comprising the same, a preparation method thereof, and a use of the same in preventing or treating a disease mediated by Rho-associated protein kinase (ROCK). (I)