An endoscope with a camera module turning function is revealed. The endoscope includes a housing provided with a mounting slot and an output portion, an insertion tube connected to the output portion, a bending member connected to the insertion tube and having a first upper turning hole and a lower turning hole, a first upper string passed through the first upper turning hole of the bending member and mounted in the insertion tube, a lower string passed through the lower turning hole of the bending member and disposed in the insertion tube, a first roller provided with a first string groove on the circumference thereof, a control member provided with a pin and a connecting rod, and an elastic member fixed on the housing and connected to the lower string. The pin is connected to the first roller while the connecting rod is connected to the pin and a control button.本發明提供一種具有鏡頭轉向結構之內視鏡,其由一殼體之一容置槽位於殼體之上端面,並具有一第一穿孔,一輸出部具有一輸出管,輸出管呈中空狀,並位於殼體之前端;一插入管呈中空狀,插入管之一端連接於輸出部;一彎曲部件之一端連接於插入管之另一端,彎曲部件之另一端設有一鏡頭,彎曲部件之二對稱管壁內設分別有一第一上轉向孔與一下轉向孔;一第一上拉線穿設於彎曲部件之管壁的第一上轉向孔,並位於插入管內;一下拉線對稱於第一上拉線,並穿設於彎曲部件之另一管壁的下轉向孔,且位於插入管內;一第一轉輪於第一轉輪之圓周設有一第一收線槽,第一上拉線之一端連接於第一收線槽內;一控制部件之一連桿之一端穿過容置槽之第一穿孔而連接第一轉輪之中心,一連接桿之一端連接連桿,並連桿與連接桿呈垂直,連接桿之另一端連接一控制鈕;一彈性件之一端固定於殼體,彈性件之另一端連接下拉線。