The simplest version: Inflation is a decline in the value of money itself (1 dollar = 2 apples vs 1 dollar = 1 apple on all goods simultaneously). what causes it is too much money chasing too few goods.
This is a supply and demand argument: whether it be apples or oil, when we have a lot more of something (supply) vs the current demand, they get cheaper. Furthermore, if I know that there's going to be a lot more apples on the market tomorrow, I'm not so keen on paying a higher price today even though the apples arent actually there yet. Well the same must be true for money itself. If there is a lot more money supplied than the demand for it, then its value must go down at some point.
There are easy examples to understand like Zimbabwe: productivity was falling (fewer goods) and rather than fix the productivity issue the government tried to just print enormous amounts of money. So the supply of money was up, and furthermore the rate of printing meant that people knew the supply would continue to go up relative to the amount of goods available. This lead to a feedback loop where people knew that more printing was coming, so would try to get goods instead of money as often as possible, which drives down the supply of available goods and drives up the prices, which causes the government to print more, which convinces people even more that they shouldnt hold on to the money and should exchange it for goods asap, ETC. The chaos lead to even less real goods being produced (how do you go out and do your job if you need to renegotiate your salary every single day), which also pushed up prices.
So we know that just continuously printing more and more money does cause inflation for various reasons. The finer details are really complicated and not agreed upon.
Where it gets complicated: what is the "supply" and "demand" for money in the modern age? I've been alluding to this idea that the supply of money has something to do with the government printing it and the demand for it has something to do with the amount of goods in an economy, but there's very little agreement in the world of economics about how this all really works in modern economies. Most transactions in an economy like the US dont involve money that the government has printed, it's largely credit. All physical dollar bills could disappear tomorrow and most transactions could continue on as if nothing happened because we have checks and credit cards (not saying there would be no effect, just that there could be no effect). Furthermore, governments like the US dont print all that much money, they mostly sell bonds in exchange for money that has been previously printed. These layers and layers of complications makes the real mechanics extremely unclear. What we do know is that when prices on everything goes up and stays up, that's inflation.