In the 1950s L. Schwartz proved his famous impossibility result: for every $$ k\in \mathbb {N}$$ there does not exist a differential algebra $$(\mathfrak {A} ,+,\otimes ,D)$$ in which the distributions can be embedded, where $$D$$ is a linear operator that extends the distributional derivative and satisfies the Leibnitz rule (namely $$D(u\otimes v)=Du\otimes v+u\otimes Dv$$ ) and $$\otimes $$ is an extension of the pointwise product on $$\mathcal {C}^{0}(\mathbb {R})$$ . In this paper we prove that, by changing the requests, it is possible to avoid the impossibility result of Schwartz. Namely we prove that it is possible to construct an algebra of functions $$(\mathfrak {A,}+,\otimes ,D)$$ such that (1) the distributions can be embedded in $$\mathfrak {A}$$ in such a way that the restriction of the product to $$\mathcal {C}^{1}(\mathbb {R})$$ functions agrees with the pointwise product, namely for every $$f,g\in \mathcal {C}^{1}(\mathbb {R})$$ and (2) there exists a linear operator $$D:\mathfrak {A}\rightarrow \mathfrak {A }$$ that extends the distributional derivative and satisfies a weak form of the Leibnitz rule. The algebra that we construct is an algebra of restricted ultrafunctions, which are generalized functions defined on a subset $$\Sigma $$ of a non-archimedean field $$\mathbb {K}$$ (with $$\mathbb {R}\subset \Sigma \subset \mathbb {K}$$ ) and with values in $$\mathbb {K}$$ . To study the restricted ultrafunctions we will use some techniques of nonstandard analysis. [ABSTRACT FROM AUTHOR]