The invention discloses a preparation method of insulin detemir or an insulin detemir analogue and belongs to the field of preparation of insulin analogues. According to the preparation method, threonine-free 30th-site human double-chain insulin precursor desB30 protein of a B chain is taken as a raw material, epsilon-amino of B29th-site lysine is selectively acylated by active ester through one step in the alkaline environment with pH ranging from 8.0 to 11 under the condition that N-terminal alpha-amino of double chains of the desB30 protein is not protected, and the insulin detemir or the insulin detemir analogue is generated efficiently. According to the preparation method of the insulin detemir or the insulin detemir analogue, parameters such as the pH value, the raw material ratio, the acylation time and the like of the acylation reaction of the insulin precursor are optimized, the yield of the insulin detemir or the insulin detemir analogue is remarkably increased, the preparation method has the advantages of high acylation efficiency, a few by-products, short acylation reaction time, a few acylation steps, simple process, low production cost and the like, and one simple and efficient method is provided for large-scale industrial preparation of the insulin detemir or the insulin detemir analogue through one-step acylation.