Exhibit 5.1

Office: +852 2801 6066
Mobile: +852 9718 8740
Email: rthorp@tta.lawyer
WeRide Inc.
21st Floor, Tower A, Guanzhou Life Science Innovation Center,
No. 51, Luoxuan Road, Guangzhou International Biotech Island,
Guangzhou 510005
People’s Republic of China
24 October 2024
Dear Sirs
WeRide Inc.
We have acted as counsel as to Cayman Islands law to WeRide Inc. (the “Company”) in connection with the Company’s registration statement on Form F-1, including all amendments or supplements thereto (the “Form F-1 Registration Statement”, filed with the United States Securities and Exchange Commission (the “Commission”) under the United States Securities Act of 1933 (the “Act”), as amended and the related registration statement filed with the Commission pursuant to Rule 462(b) of the Securities Act (the “Rule 462(b) Registration Statement”, together with the Form F-1 Registration Statement, the “Registration Statements”), related to the offering and sale of American Depositary Shares representing certain Class A Ordinary Shares, par value of US$0.00001 per share (the “Shares”). This opinion is given as exhibits 5.1, 8.1 and 23.2 to the Rule 462(b) Registration Statement.
We have reviewed originals, copies, drafts or conformed copies of the documents listed in Schedule 1 to this opinion, being all of the documents necessary to form our opinion. Defined terms shall have the meanings set out in Schedule 1 or in the Registration Statements.
The following opinion is given only as to, and based on, circumstances and matters of fact existing and known to us on the date of this opinion. This opinion only relates to the laws and practice of the Cayman Islands which are in force on the date of this opinion. In giving this opinion we have relied (without further verification) upon the completeness and accuracy of the Director’s Certificate, a copy of which is attached to this opinion as to matters of fact, and have assumed that copy documents or drafts of documents provided to us are true and complete copies of, or in the final forms of, the originals.
