Tidal forces are residual forces, they are the consequence of gravitational forces acting more strongly on one part of an extended body than another.
Remember that gravity is proportional to $1/r^2$. So one side of the earth (the "nearby" side from the Sun's perspective) feels a gravitational force
$$F_g^{near} \propto 1/(D_{s-e}-R_e)^2$$
where $D_{s-e}$ is the distance between the center of the Sun and the center of the Earth and $R_e$ is the earth's radius.
Contrarily, the "far" side of the earth feels a force
$$F_g^{far} \propto 1/(D_{s-e}+R_e)^2 < F_g^{near}$$
so the far side of the earth is accelerated towards the Sun less than the near side. This residual force (the difference between the force on the near side and that on the far side) is what we call a tidal force.
Notice that this discussion is incomplete, since the gravitational force is not only influenced by distance, it is also proportional to mass (or mass density). Because water and (basically) rocks don't have the same mass density, the effect will be different for the oceans and the 'solid' chunk of 'rock' they 'envelope'. (lots of quotes there) This isn't vital to our discussion here, though, since the tidal forces aren't strong enough to significantly distort the shape of the rigid earth. But it's worth keeping in mind.
Furthermore, note that the tides on earth are mainly due to the gravitational effect of the moon on the earth, not the Sun. The Sun may be a lot heavier than the moon, but the moon is a lot closer. And gravitational forces scale only linearly with mass while they scale quadratically with inverse distance. As a consequence, the Solar tides are about half as large as the lunar tides. (see also this illustrative app and this link for some more information)
Richard Feynman actually briefly addressed the tides in his Lectures on Physics and it's fun and interesting to watch, so here's a link. His discussion of the tides starts at around 25:00.
Explicit calculation and comparison between Solar tides and Lunar tides
Let's quickly crunch some rough numbers, shall we? Of course, we'll need values for a few quantities. (I'll be using SI units since you'll probably be most familiar with those)
$$\begin{align}
M_S &\approx 2\times10^{30}\,\text{kg} \\
M_M &\approx 7.3\times10^{22}\,\text{kg} \\
D_{SE} &\approx 1.5\times10^{11}\,\text{m} \\
D_{ME} &\approx 3.8\times10^{8}\,\text{m} \\
R_E &\approx 6.4\times10^{6}\,\text{m} \\
G &\approx 6.7\times10^{-11}\,\text{m}^3\,\text{kg}^{-1}\,\text{s}^{-2}
\end{align}$$
With these numbers we can calculate the gravitational acceleration $a=F_G/m$ experienced by the near and far side of the earth. (we don't calculate the force because the affected mass $m$ will in general be different) The difference between the gravitational acceleration for the near and far side is a measure for the strength of the tides. For the Sun we find
$$a_S = GM_S\left(\frac{1}{(D_{SE}-R_E)^2} - \frac{1}{(D_{SE}+R_E)^2}\right) \approx 1\times10^{-6}\,\text{m}\,\text{s}^{-2}$$
and for the moon
$$a_M = GM_M\left(\frac{1}{(D_{ME}-R_E)^2} - \frac{1}{(D_{ME}+R_E)^2}\right) \approx 2.3\times10^{-6}\,\text{m}\,\text{s}^{-2}.$$
So we see from this crude estimate that indeed the Solar tides are about half as large as the Lunar tides.