A detachable rotating mechanism and a related electronic device with positioning function are provided. The detachable rotating mechanism includes a base, a pivoting component and a blocking component. The base has a first surface and a second surface. The base includes a guiding structure, at least one hole structure and a positioning portion. The guiding structure and the positioning portion are disposed on the first surface. The hole structure pierces through the first surface and the second surface. The pivoting component includes a sliding portion and a pivoting portion. The sliding portion is rotatably disposed on the positioning portion and slidably assembled with the guiding structure. The pivoting portion is connected to the sliding portion and pivots to a chassis. The blocking component is disposed on the second surface. A blocking portion of the blocking component pierces through the hole structure to movably protrude from the first surface.
展开▼