A trench transistor has a cell array, in which at least one cell array trench (2) is provided, and an edge structure framing the cell array. An edge trench (15) spaced apart from the cell array trenches (2) is provided in the edge structure.