In the lecture I had about the Lagrange density, it was said that one of the conditions or criteria of $\mathcal{L}$ is that: It must be local (i.e polynomial in fields and derivatives).
While I understand the necessity for it to be polynomial, which means it contains even power of fields and their derivatives i.e real scalar field as an example. And that it somehow is related to renormalizability (which we did not learn about this semester), I don't understand the necessity for it to be local, or rather what it means to be local? That the field is a function of spacetime?