If we consider $\mathbb{R}$ as a vector space over the field $\mathbb{R}$, then the maps $\mathbb{R} \to \mathbb{R}$ preserving this structure are exactly the linear maps $x \mapsto ax$. In contrast, if we think of $\mathbb{R}$ as an affine space instead, the maps preserving this structure are exactly the affine maps $x \mapsto ax + b$.
Is it possible to "forget" even more structure, and have a structure on $\mathbb{R}$ such that the maps $\mathbb{R} \to \mathbb{R}$ preserving this structure are exactly the polynomials?
I'll leave it up to you what ring to take coefficients of polynomials from. If anyone could do it for $\mathbb{N}$, $\mathbb{Z}$, $\mathbb{Q}$, $\mathbb{C}$ instead, I'll be equally happy.
The structure is that of an affine variety or affine algebraic set. In general, as a set, it is the zero-locus in $\mathbb{A}^n(k)=k^n$ of some finite family of polynomials (that generate a prime ideal for a variety). For $\mathbb{A}^n(k)$ itself we take the zero polynomial. This is usually considered over $k=\mathbb{C}$, or some other algebraically closed field, not $\mathbb{R}$. However, one can restrict to considering real points in it. In this case we will take the affine line $\mathbb{A}^1(k)$. Morphisms of affine varieties are functions that are polynomials in each coordinate, in this case, a single coordinate. What they preserve is the coordinate ring, in this case the ring of all polynomials, compositions of polynomials with polynomials are again polynomials. This makes it a type of ringed space.