Why do share prices go up and down

As a beginner, I’m curious to understand what causes stock prices to rise and fall. Is it purely demand-supply or are there deeper financial triggers involved?