Earth abundant Cu2BaSnS4 thin films hold great promise for use as solar absorbers in the photoelectrochemical water splitting and the top cell of tandem photovoltaic solar cells.