The structure of pure magnesium and AZ91 magnesium alloy and the influence of heat treatment on the structure is studied.