Plants use sunlight to convert carbon dioxide into oxygen.