AbstractIn this note we answer the following question in the affirmative: Is there a natural algebraic structure on the vector spaces containing the extended binary and ternary Golay codes such that the codes become ideals in these algebras? Our motivation was a note of J. Wolfmann, that describes the extended binary Golay code as the binary image of a principal ideal in a group algebra over the field with eight elements, and also a note of D. Y. Goldberg, that contains a related result for the extended ternary Golay code. In the following we construct those codes as ideals in the binary group algebra over the symmetric group H4 and in the ternary twisted group algebra over the alternating group u4, respectively. Before we present our resul...