The notion of graph generated by the mutual orthogonality relation for the elements of an associative ring is introduced. The main attention is paid to the commutative rings and to the matrix ring over a field and its various subrings and subsets. In particular, the diameters of the orthogonality graphs of the full matrix algebra over an arbitrary field and its subsets consisting of diagonal, diagonalizable, triangularizable, and nilpotent matrices are computed. Bibliography: 36 titles.