The invention discloses an AAV carrier for the treatment of type 2 diabetes and a preparation method and application thereof. The AAV vector has a long time to express the exogenous gene GLP-1, and the expression stability is good, which can effectively treat type 2 diabetes.