It is shown that every compact nonconnected semigroup (semiring) which has commuting congruences, has a nontrivial continuous homomorphic image which is iseomorphic to a direct product of finite congruence free semigroups (semirings). (This extends parts of earlier work by Kaplansky (1947) on compact rings.) It is also shown that there is a possibly finer representation but onto a product of congruence free semigroups (semirings) known only to be compact Hausdorff. A number of the techniques used evolve from work of Professor Wallace, who retired in mid-1973, and to whom this paper is dedicated.In what follows M will stand for either a semigroup or a semiring. (Following Selden (1963), (1964) (1961). For other matters concerning topological algebra not specifically referenced the reader should find that Koch and Wallace (1954), and Wallace (1955), (1962