Electrolysis is a decomposition reaction - it splits a compound into its simpler, individual elements. Remember… a compound is a substance made of.