Maxwell equations read
$$\nabla\cdot \vec E=\rho\tag1$$ $$\nabla\times \vec E = -\frac{\partial \vec B}{\partial t}\tag2$$ $$\nabla\cdot\vec B=0\tag3$$ $$\nabla\times\vec B=\vec j+\frac{\partial\vec E}{\partial t}\tag4$$
For the sake of simplicity, I assume $\vec{j}=0$. Equations (2) and (4) form a linear first order system
$$D_x {\bf X}(t,x) = \partial_t {\bf X}(t,x)\tag 5$$
where $${\bf X} = (\vec{E}, \vec{B})^t$$ is a vector in $\mathbb R^6$. $D_x$ is a first order differential operator acting only on the spatial variable $x$:
$$D_x = (\nabla \times, \nabla\times)^t S$$
and $S$ is the matrix $6\times 6$ decomposed into 4 blocks made of $3\times 3$ matrices: $I$ and $-I$ on the anti diagonal and $0$, $0$ on the principal diagonal.
As soon as you fix initial conditions $\vec{E}(0,x)$, $\vec{B}(0,x)$, that is ${\bf X}(0,x)$, there is a unique solution of (5). This is true under suitable regularity conditions. This is
$${\bf X}(t, x) = e^{tD_x}{\bf X}(0,x)\tag 6$$
We have obtained that (2) and (4) always admit unique solutions for fixed initial conditions (the case $\vec{j}\neq 0$ is a little complication of our simplified case).
What about (1) and (3)? It is known that (2) and (4) together with
the charge conservation law give rise to
$$\partial_t(\nabla\cdot \vec E-\rho)=0$$
and
$$\partial_t(\nabla\cdot\vec B)=0$$
where the fields $\vec{E}$ and $\vec{B}$ solve (2) and (4). Therefore, if the initial conditions for (2) and (4) satisfy (1) and (3) (and we are free to fix initial conditions with this feature), these constraints are valid for all times.
ADDENDUM. In case $\vec{j}$ is present, the general solution of (2) and (4) is the sum of the general solution of the homogeneous equation (5) added to a particular solution of (2)-(4). In practice
$${\bf X}(t,x) = e^{tD_x} {\bf Y}(x) + e^{tD_x} \int_0^{t} e^{-\tau D_x} {\bf J}(\tau,x) d\tau$$
with ${\bf J}= (\vec{j}(t,x),\vec{0})^t$.
It is clear that ${\bf Y}(x)= {\bf X}(0,x)$ again.