The main result of this paper is the introduction of a notion of a generalized RLatin square, which includes as a special case the standard Latin square, as well as the magic square, and also the double stochastic matrix. Further, the algebra of all generalized Latin squares over a commutative ring with identity is investigated. Moreover, some remarkable examples are added.