Concept:
For an ellipse with major axis along \(x\)-axis:
\[
\frac{x^2}{a^2}+\frac{y^2}{b^2}=1
\]
where
\[
e=\frac{c}{a}
\]
and
\[
b^2=a^2-c^2
\]
Step 1: Given foci are:
\[
(\pm 3,0)
\]
So:
\[
c=3
\]
Step 2: Given eccentricity:
\[
e=\frac{1}{3}
\]
Using:
\[
e=\frac{c}{a}
\]
\[
\frac{1}{3}=\frac{3}{a}
\]
\[
a=9
\]
So:
\[
a^2=81
\]
Step 3: Find \(b^2\).
\[
b^2=a^2-c^2
\]
\[
b^2=81-9
\]
\[
b^2=72
\]
Step 4: Write the equation of ellipse.
\[
\frac{x^2}{a^2}+\frac{y^2}{b^2}=1
\]
\[
\frac{x^2}{81}+\frac{y^2}{72}=1
\]
Therefore,
\[
\boxed{\frac{x^2}{81}+\frac{y^2}{72}=1}
\]