We studied the anatomy and cytology of the midgut gland (MGl) of the common spider crab Maja brachydactyla Balss 1922 at several life stages (zoea, megalopa, first juvenile, and adult) using dissection, histology, electron microscopy, computed tomography, and micro-computed tomography (micro-CT). In newly hatched larvae, 14 blind-end tubules formed the MGl. The length of the tubules increases during the larval development. In the late megalopa, the number of tubules also increases. In adults, 35,000 to 60,000 blind-end tubules comprise the MGl. In all life stages, a square-net network of muscle fibers surround the tubules. We describe five cell types in the MGl in all larval stages, which have a similar location, histology, and ultrastructure in larvae and adults: embryonary (E-) cells, resorptive (R-) cells, fibrillar (F-) cells, blister-like (B-) cells, and midget (M-) cells. Major difference between larval and adult cells is the larger size of the adult cells. Microapocrine secretion occurs from the microvilli of the B-cells. No ultrastructural changes were observed, which suggests that the function of each cell type might be similar in all life stages. The role of each epithelial cell type in larvae and adults is discussed.