1 Introduction

With the increasing awareness of pollutions especially the pollutants such as dyes, heavy metals, etc. in the polluted water [1, 2], more techniques have been developed to remove the pollutants including adsorption, photocatalytic degradation, etc. [3, 4]. Visible light photodegradation has attracted increasing attention and the main part is the effective photocatalysts [5, 6]. Recently, based on their good catalytic activity, tin (Sn) particles have been widely used in catalytic fields such as organic synthesis and redox reaction. [7, 8]. In addition, because of the energy crisis, the development and application of Sn-based materials has become more urgent because of the need for cheap and efficient photocatalysis caused by environmental pollution [9].

Based on the above knowledge, Sn nanomaterials have huge application prospects in many areas of human life, so the research on the preparation of nano-Sn is getting more and more attention from researchers. Various procedures have been proposed and applied to obtain Sn nanoparticles, such as mechanical alloying technology [10], arc discharge technology [11], metal vapor condensation technology [12], liquid-phase reduction [13], physical vapor deposition (PVD) [14], chemical liquid deposition (CLD) [15], electrochemical method [16], reverse micelle method [17] and so on. For example, Chee et al. [18] used stannous octoate as a raw material, sodium borohydride as a reducing agent, and polyvinylpyrrolidone (PVP) as a surfactant to study the effects of reaction temperature, drying temperature, ultrasonic vibration, and centrifugal speed on the size of Sn nanoparticles. It was found that the size of Sn nanoparticles increased with the increase of reaction temperature and drying temperature, and the agglomeration of Sn nanoparticles was aggravated with the increase of ultrasonic and centrifugal speed [19]. However, in these methods, the Sn nanoparticles obtained by some methods are prone to agglomeration, results in uneven size and contains many impurities (such as mechanical alloying technology and arc discharge technology), some require reaction in a vacuum environment (such as PVD method), and some require harsh experimental conditions and complex operations (such as metal vapor condensation technology) [20,21,22]. Only the electrochemical method based on electrolysis theory is simple in operation and low in cost, and it is easy to obtain Sn nanoparticles with controllable and uniform morphology by controlling the reaction conditions [23, 24].

In addition, semiconductor oxides play a huge role in the field of catalytic degradation due to their unique electron and hole characteristics [25]. Tin dioxide (SnO2) as an n-type wide bandgap semiconductor material, which is widely used in the cleaning and purification of organic pollutants in water and air due to its unique photocatalytic activity and good chemical stability [26, 27]. Furthermore, as a photocatalyst, SnO2 has mild reaction conditions, fast reaction speed, high catalytic activity, strong oxidation ability, low energy consumption, and no secondary pollution, so it is considered to be one of the most promising green catalysts [28,29,30]. Elango et al. [31] synthesized SnO2 nanoparticles by green method using Persia Americana seed methanolic extract, it was found that the synthesized SnO2 nanoparticles had a size of 4 nm and exhibited an excellent photocatalytic degradation effect on the organic dye phenolsulfonphthalein (phenol red).

In this paper, Sn particles with a dendritic microstructure were generated at the cathode by a simple electrochemical anodic oxidation method, and then metal Sn-doped semiconductor SnO2 hybrids with certain photocatalytic activity were obtained by further high-temperature oxidation treatment. With the help of SEM and XRD measurements, the morphologies and structures of the Sn and Sn/SnO2 microparticles were characterized respectively. Specifically, the influencing parameters such as applied potential, electrolyte and its concentration were discussed, and the growth of process of Sn microparticles with dendritic structure was also discussed. Different ratio of Sn and SnO2 in the final product was get after different heat treatment temperature. The final photocatalytic degradation experiment results found that the photocatalytic activity Sn/SnO2 particles was superior to that of the pure Sn particles estimated with the degradation of rhodamine B (RhB) under simulated solar light.

2 Experimental procedures

2.1 Materials

High-purity tin flake (1000 × 1000 × 1 mm, 99.99%) and high-purity titanium flake (1000 × 1000 × 1 mm, 99.99%) were obtained from Beijing Jinyuan New Material Technology Co., Ltd. (Beijing, China). Ethanol (CH3CH2OH, 99.7%), acetone (CH3COCH3, AR), isopropanol (C3H8O, AR) and methanol (CH3OH, AR) were purchased from Shanghai Aladdin Reagent Co., Ltd., China. Hydrofluoric acid (HF, AR, 40%), nitric acid (HNO3, AR), Ethylenediamine (C2H8N2, AR) and ammonium fluoride (NH4F, AR, 98%) were provided by Shanghai McLean Biochemical Technology Co., Ltd., China. Rhodamine B (RhB) was supplied by Tianjin Bodi Chemical Reagent Co. Ltd. (AR, Tianjin, China). Distilled water was used throughout the experiments. All reagents were of analytical grade and used without further purification.

2.2 Preparation of Sn particles and Sn/SnO2 hybrid

Before anodization, it needs to clean and polish the Sn and Ti sheets. Specifically, the Sn sheets and Ti sheets cut into 2 cm × 2 cm were sonicated in acetone, isopropanol and methanol for 10 min in turn. Then, the Sn sheet was physically polished with sandpaper, and the Ti sheet was chemically polished in a mixture of V(HF):V(HNO3):V(H2O) = 1:4:5, and last cleaned with deionized water. Sn particles are obtained through a unique electrochemical method, the experiments were performed at the room temperature in a two-electrodes using Sn plate as the anode and Ti plate as the cathode. The electrolyte used was ethylene glycol solutions of NH4F which concentration was in the range from 0.04 M to 0.2 M. A constant voltage was applied for each experiment, ranging from 5 to 50 V. After electrochemical reaction for a period of time, the coating deposited on the cathode Ti sheet was collected. The products (Sn particles) were washed and centrifuged several times with distilled water and absolute ethanol respectively to remove the impurities, and then dried in a drying oven at 70 °C. The Sn particles are subjected to different high-temperature (450 ℃, 550 ℃, and 600 ℃) oxidation treatments to obtain the corresponding Sn/SnO2 hybrid.

2.3 Characterization

The phases and structures of the prepared samples were measured with a Rigaku D/Max2500PC X-ray diffraction (XRD) equipped with graphite monochromatized Cu Kα radiation (λ = 0.15418 nm), using a scanning rate of 4°·min−1 in 2θ rage from 10° to 80°. The morphology of the products was characterized by a scanning electron microscope (SEM, SU-70) with acceleration voltage of 15 kV. The concentration of RhB in the solution was then measured by using a UV–Vis spectrophotometer (UV9000) at a wavelength of 554 nm.

2.4 Photocatalytic activity performance tests and electrochemical performance analysis

The photocatalytic activity of the product was evaluated through the photodegradation of Rhodamine B (RhB) under a simulated solar light irradiation. The experimental process could be summarized as follows: 0.05 g of the as-prepared samples were dispersed ultrasonically for 2 min in 50 mL of RhB solution with a concentration of 10 mg·L–1. A 300 W xenon lamp without any optical filters was employed to simulate the solar light irradiation.

The electrochemical performance (transient photocurrent density) of Sn/SnO2 hybrid was detected by the three-electrode system of the electrochemical workstation (Autolab, Metrohm Co. Ltd.). Under the intermittent irradiation of xenon lamp to simulate sunlight, a nickel foam (4 cm2) coated with 20 mg catalyst was used as working electrode, platinum electrode as counter electrode, saturated calomel electrode as reference electrode, and electrolyte selected as 0.1 mol/L Na2SO4 solution.

3 Results and discussion

3.1 Morphological characterization of Sn particles obtained under different conditions

Tin (Sn) particles generated at the cathode by electrochemical methods, the morphology and size of Sn microparticles can be controlled by adjusting the experimental conditions, such as composition of electrolyte (fluoride ion content, deionized water content), applied voltage, and reaction time [32,33,34].

In order to establish the impact of fluoride ion concentration on the micro-nano structure, we prepared samples by changing the NH4F content (0.04 mol/L, 0.08 mol/L, 0.15 mol/L, 0.20 mol/L, respectively) based on the consistency of other factors (deionized water content of 5 vol%, reaction voltage of 15 V and reaction time of 5 h). As shown in Fig. 1, Sn particles present a unique dendritic morphology, and the shape of the dendrites is closely related to the concentration of NH4F. From the SEM of Fig. 1a, it can be seen that at low NH4F content (0.04 mol/L), the obtained dendritic Sn particles are larger in size, the stems are slightly bent, and the whole morphology is rough and irregular. When the concentration of NH4F increased to 0.08 mol/L, the morphology of dendritic products tended to be regular, the stems tended to be straight and the length of branches decreased (Fig. 1b). When the NH4F concentration is further increased to 0.15 mol/L, the branches of dendritic Sn particles become finer and the stem length is decreases to 50 μm (Fig. 1c). When the NH4F content reaches 0.20 mol/L, large-grained dendrites appear, and the dendritic morphology becomes irregular and agglomerated (Fig. 1d). It can be concluded that the content of NH4F has a great influence on the morphology of tin micro-nano powder, and when its concentration is 0.15 mol/L, the perfect product of Sn dendrite can be obtained.

Fig. 1
figure 1

SEM images of Sn microparticles obtained with different NH4F concentration (a) 0.04 mol/L, (b) 0.08 mol/L, (c) 0.15 mol/L and (d) 0.20 mol/L

Next, we analyzed the effect of the content of a small amount of deionized water in the electrolyte solution on the morphology of Sn micro-nanostructures. As shown in Fig. 2a and 2b, on the basis of other conditions being uniform (NH4F content of 0.15 mol/L, reaction voltage of 15 V and reaction time of 5 h), at low deionized water content (1.5 and 3 vol%), the dendritic Sn particles are irregular in shape and accompanied by many debris. When the deionized water content increased to 5 vol%, the crystal morphology of the obtained dendritic products tends to be regular and perfect, and the fine branches become numerous and dense (Fig. 2c). When the deionized water content is further increased to 10 vol%, the stem length of dendritic Sn particles increases, but the fine branches tend to be sparse (Fig. 2d).

Fig. 2
figure 2

SEM images of the Sn microparticles prepared with different deionized water content (a) 1.5 vol%, (b) 3 vol%, (c) 5 vol% and (d) 10 vol%

For the electrochemical reaction process, the applied voltage also has a great influence on the morphology of the deposited product on the electrode [35, 36]. Figure 3 is the SEM of Sn microparticles obtained under different reaction voltages, from Fig. 3a, after 5 h electrochemical reaction, the products obtained by applying a voltage of 5 V are mostly granular, and the dendritic morphology is not perfect. When the applied voltage increased to 10 V, the morphology of dendritic products gradually formed, but the thin branches are not completely bifurcation (Fig. 3b). As the voltage continues to increase to 15 V and 30 V, it can be seen from Fig. 3c and d that the morphology of dendritic Sn particles tends to be regular, and there is no obvious change in the SEM of 15 V and 30 V.

Fig. 3
figure 3

SEM images of Sn microparticles prepared using different applied voltage (a) 5 V, (b) 10 V, (c) 15 V and (d) 30 V

The growth process of Sn microparticles with dendritic structure was studied by controlling the reaction time. In order to explore the crystal growth of Sn particles, the growth process of the crystal product is studied from the nanometer size in a short time (5 min, 30 min, 60 min and 90 min). Under the condition of an applied voltage of 15 V, after the electrochemical reaction for 5 min, the Sn nanoparticles deposited on the cathode show a nano-dispersion state, and the Sn particle size is about 25 nm (Fig. 4a). When the reaction time reaches 30 min, the Sn nanoparticles grow to about 100 nm, but remain independent from each other (Fig. 4b). From Fig. 4c, as the reaction time is above 60 min, Sn nanoparticles grow further and some begin to connect and merge with each other. With the time increased to 90 min, for Sn nanoparticles with increasing size, the compatibility phenomenon is more obvious and the dendritic rudiment appears (Fig. 4d). Until the reaction time increases to 5 h, the Sn particles show a perfect dendritic morphology.

Fig. 4
figure 4

SEM images of the Sn microparticles obtained at 15 V with different reaction time (a) 5 min, (b) 30 min, (c) 60 min and (d) 90 min

3.2 Mechanism of electrochemical method to generate Sn particles

Combining the growth morphology of Sn crystal products under different conditions above, and based on the theoretical basis for the preparation of metal particles by the electrochemical anodic oxidation-cathode precipitation method, we get that the formation mechanism of Sn particles is mainly divided into four stages.

In the first stage, due to the hydrolysis of NH4F, the electrolyte is weakly acidic, during the electrolysis process [37], the Sn sheet as anode is oxidized, and many micro bubbles appear on the cathode Ti sheet. The main reactions of the two electrodes are as follows:

$$\text{Anode}:\text{ Sn }\to {\text{Sn}}^{2+} + {2}^{\text{e}-}$$
(1)
$$\text{Cathode}: {2\text{H}}^{+} + {2}^{\text{e}-} \to {\text{H}}_{2}$$
(2)

In the second stage, the fluoride ion (F) in the electrolyte solution is complexed with the tin ion (Sn2+) generated by the anode to obtain SnF42−, and the specific reaction is:

$${\text{Sn}}^{2+} + 4{\text{F}}^{-} \to \text{ Sn}{{\text{F}}_{4}}^{2-}$$
(3)

In the third stage, the SnF42− reach the vicinity of the cathode under the action of magnetic stirring and are reduced to metal Sn particles by obtaining electrons, the reaction is as follows:

$$\text{Sn}{{\text{F}}_{4}}^{2-} + {2}^{\text{e}-} \to \text{ Sn }+ 4{\text{F}}^{-}$$
(4)

In the fourth stage, when the metal Sn crystal nucleus starts to precipitate on the cathode, as the reaction proceeds, the Sn particles gradually grow and become larger in size, and with the different reaction conditions, the morphology of the obtained Sn particles is also different.

3.3 Characterization analysis of Sn/SnO2 after Sn particles treated at different high temperatures

By exploring the influence of different conditions on the crystal morphology, the optimal conditions for the electrochemical method to prepare Sn particles are obtained: in the ethylene glycol electrolyte solution containing NH4F, the content of NH4F is 0.15 mol/L, the deionized water content was 5 vol%, and the reaction is carried out for 5 h under the applied working voltage of 15 V. In order to make the product have higher photocatalytic activity, the Sn particles with dendritic crystal morphology were then subjected to high-temperature calcination treatment at 450 °C, 550 °C and 600 °C, respectively [38, 39], and the SEM of the obtained samples are shown in Fig. 5a-c. Compared with the Sn particles, the morphology of the samples changed after high temperature treatment. It can be seen from Fig. 5a that when the temperature is set at 450 °C, the surface of the sample is scattered due to oxidation, but the overall dendritic skeleton morphology remains unchanged. When the heat treatment temperature increased to 550 °C, the branches of dendritic Sn particles gathered together and a large number of micropores appeared on the surface with the intensification of the oxidation degree (Fig. 5b). When the temperature reaches 600 °C, it can be seen from Fig. 5c that the dendritic morphology of the sample becomes less obvious, and the surface tends to be loose and porous. In summary, it can be concluded that the morphology of the Sn particles obtained by the electrochemical method changes from a regular dendritic structure to a loose and porous structure after different high-temperature treatments, which provides abundant catalytic active sites for the obtained samples as photocatalysts [40, 41].

Fig. 5
figure 5

SEM images of the Sn/SnO2 microparticles obtained with different calcination temperature (a) 450 °C, (b) 550 °C and (c) 600 °C, (d) XRD patterns of Sn particles and Sn/SnO2 products prepared with different calcination temperature

To analyze the crystal structure and phase composition of the as-prepared samples after high-temperature treatment, XRD was carried out. The XRD patterns of the as-prepared products are shown in Fig. 5d. For the obtained Sn particles, all the diffraction peaks are in well agreement with the literature values of the tetragonal phase of metallic Sn (JCPDS No.04–0673) [42,43,44]. Nearly no other peaks of impurities are detected, showing that the obtained Sn particles are of high purity. After Sn microparticles are treated at different high temperatures (450 ℃, 550 ℃ and 600 ℃), the peaks of cassiterite SnO2 (JCPDS file No. 41–1445) can be also found in the patters [45,46,47]. Therefore, the main component of the sample obtained after high temperature treatment is the hybrid compound composed of Sn and n-type semiconductor SnO2 (Sn/SnO2). It is worth noting that with the increase of heat treatment temperature, the diffraction peak of metal Sn in the hybrid gradually weakens, and the characteristic peak of SnO2 gradually increases, indicating that the oxidation degree of Sn particles deepens with the increase of temperature.

3.4 Photocatalytic performance of Sn/SnO2

N-type semiconductor SnO2 has excellent stability and photocatalytic activity [48,49,50]. In this work, the Sn/SnO2 hybrid with metal Sn-doped semiconductor SnO2 properties obtained by high-temperature treatment of dendritic Sn particles can further improve the photocatalytic performance of traditional catalyst SnO2 [51, 52]. To eliminate the effect of adsorption on photocatalysis, for each experiment, 50 mg of catalyst powder was added to 50 mL of RhB solution and stirred for 1 h in the dark to obtain adsorption/desorption equilibrium [53]. During light irradiation, the catalyst was kept in suspension by a magnetic stirrer, and 2 ml of the reaction solution was aspirated with a pipette every 30 min and centrifuged immediately to separate the catalyst from the solution. Finally, the concentration of RhB in the solution after a fixed time was measured at a wavelength of 554 nm by a UV–visible spectrophotometer [54]. The specific degradation efficiency calculation formula is as follows [55]:

$$\mathrm{The}\;\mathrm{degradation}\;\mathrm{efficiency}=\left[(C_{\mathit0}\mathit-C_t)/C_0\right]\times100\%$$
(5)

where C0 is the initial concentration of RhB, Ct is the concentration of RhB at time t. From Fig. 6a, after illumination for 5 h, compared with commercial SnO2, the photocatalytic efficiency of the Sn/SnO2 hybrid obtained in this work has been greatly improved, especially for the degradation efficiency of the catalyst obtained by calcination at 550 °C as high as 89.8%. It is worth noting that when the calcination temperature continues to increase to 600 °C, the photocatalytic efficiency of the hybrids decreases, which may be related to the electron mismatch in the Sn and SnO2 heterojunction.

Fig. 6
figure 6

(a) Degradation efficiency of RhB with various catalysts, (b) The photocurrent density of various catalysts, (c) The absorption spectra of RhB with Sn/SnO2 (550 °C) as photocatalyst in different reaction time, and (d) The cycles of photocatalytic experiment of Sn/SnO2 (550 °C) for RhB degradation

In order to verify the accuracy of the above photocatalytic efficiency and predict that the degradation of RhB by the catalyst may be related to the rapid interfacial transfer of photogenerated charge carriers and the subsequent effective charge separation, the photocurrent response behavior of the sample electrode in 0.1 M Na2SO4 electrolyte under intermittent visible light irradiation was tested using a three-electrode system in an electrochemical workstation [56, 57]. As shown in Fig. 6b, the prepared electrodes of different samples have a very obvious change in the response current under the condition of intermittent switching of the xenon lamp for 15 s. The Sn/SnO2 (550 °C) electrode demonstrated a stronger transient photocurrent response (0.38 mA/cm2) under visible light illumination, which was higher than that of commercial SnO2 (0.26 mA/cm2), Sn/SnO2 (450 °C) (0.33 mA/cm2), and Sn/SnO2 (600 °C) (0.36 mA/cm2). In addition, after three cycles of light cycles, the current density under light conditions is basically constant, which proves that the prepared catalyst has good stability.

In order to more directly reflect the photocatalytic performance of the catalyst on RhB in different time periods, the time-dependent UV–Vis absorption spectrum of RhB with Sn/SnO2 (550 °C) electrode is also operated and shown in Fig. 6c. It can be clearly seen from the figure that with the passage of degradation time, the UV–Vis absorption peak intensity of RhB in the solution decreased significantly at 554 nm. The recycling performance of photocatalysts is considered to be a key factor for evaluating the green sustainable catalysts, by repeated centrifugation, collecting and drying samples, the cyclic experiments of Sn/SnO2 (550 °C) are conducted for seven runs and the result is depicted in Fig. 6d. After the first measurement, the catalyst is centrifuged, washed three times with deionized water and ethanol, and dried for the next cycle experiment. From the experimental results, it can be found that the degradation efficiency of the catalyst Sn/SnO2 (550 °C) to RhB can still achieve more than 80.0% after 5 cycles, and the degradation efficiency decreases but still remains above 70.0% after 7 cycles. The degradation of performance may be related to the surface deactivation caused by the adsorption of RhB degradation products to the surface of the catalyst. Therefore, these results indicate that the photocatalyst obtained in this study has good reusability.

3.5 Photocatalytic mechanism of Sn/SnO2

The above results indicate that the Sn doped SnO2 samples have shown much improved photocatalytic activity on the photodegradation of RhB than the pure commercial SnO2. The UV–vis diffuse reflectance spectra of the pure SnO2 and calcined sample Sn/SnO2 are showed in Fig. 7a, it can be clearly seen that Sn/SnO2 have good light absorption than pure SnO2 in the visible light absorption range with a range of 400–750 nm, which indicates that doped Sn enhanced significantly visible light absorption of SnO2 catalyst. The direct band gap (Eg) values of different catalysts are estimated from the (Ahν)2 versus photon energy () plot [(Ahv)2 = K(hv − Eg), where A is the absorption coefficient, is the photon energy, K is a proportionality constant and Eg is the band gap energy for direct transitions] as showed in the Fig. 7b [58]. As depicted in Fig. 7b, the band gap of Sn/SnO2 have been narrowed from 3.85 eV (pure SnO2) to 3.82 (calcined at 450 °C), 3.76 (calcined at 550 °C) and 3.80 eV (calcined at 600 °C), respectively. It is worth mentioning that the band gap of samples obtained at 550 °C is the lowest and the photocatalytic effect is the best. The surface is attributed to the unique morphology to provide abundant active sites. The deep theory is that the appropriate amount of Sn-doped SnO2 catalyst obtained at 550 °C promotes the transfer of photogenerated charge and extends the lifespan of photogenerated charge. Combined with the test results in Fig. 6b, Sn/SnO2 (550 °C) has excellent photocurrent response intensity, indicating that photogenerated electrons and holes are effectively separated, so that more active groups can participate in photocatalytic degradation.

Fig. 7
figure 7

(a) UV–Vis spectra and (b) plots of (Ahν).2 vs. of different catalysts, (c) Photoresponse mechanism of the Sn-doped SnO2 (550 °C)

The probable photocatalytic mechanism of Sn-doped SnO2 hierarchical structures for degradation of RhB and schematic electronic structure for significantly improving photocatalytic performance are illustrated in Fig. 7c. Under visible light excitation, electrons in the valence band (VB) of Sn-doped SnO2 catalyst can be excited to the conduction band (CB) of the catalyst, while forming the same number of holes in VB (Eqs. (6)), leading to the formation of photogenerated electron–hole pairs [59, 60]. Compared to pure SnO2, the Sn-doped SnO2 hierarchical structure shows the stronger light absorption and lower band gap, therefore, more charge carriers can be excited in the process and then participate in following photocatalytic reactions [61, 62]. The reactive electrons (e) from the Sn/SnO2 reduce O2 to·O2• − (Eqs. (7)) [63]. Meanwhile, the reactive holes (h+) oxidize RhB to its radical cation either directly (Eqs. (10)) or through a primarily formed OH produced by the oxidation of ubiquitous water (Eqs. (8)) [64, 65]. O2• − and OH are proven to be the main active species, which can eventually convert organic dyes (RhB) into CO2, H2O and others (Eqs. (9) and (11)) [66].

$$\text{Sn}/{\text{SnO}}_{2} +\text{ visible light }\to \text{Sn}/{\text{SnO}}_{2} +{{\text{e}}^{-}}_{(\text{CB})} +{{\text{ h}}^{+}}_{(\text{VB})}$$
(6)
$${e}^{-} + {\text{O}}_{2} \to {{\text{O}}_{2}}^{\bullet -}$$
(7)
$${\text{h}}^{+} + {\text{H}}_{2}\text{O }{\to }^{\bullet }\text{OH }+ {\text{H}}^{+}$$
(8)
$$\text{RhB }+ {{\text{O}}_{2}}^{\bullet -} \to {\text{CO}}_{2} + {\text{H}}_{2}\text{O }+\text{ Other products}$$
(9)
$$\text{RhB }+ {\text{h}}^{+} \to \text{ C}{\text{O}}_{2} + {\text{H}}_{2}\text{O }+\text{ Other products}$$
(10)
$$\text{RhB }{+}^{\bullet }\text{ OH }\to \text{ C}{\text{O}}_{2} + {\text{H}}_{2}\text{O }+\text{ Other products}$$
(11)

4 Conclusions

Sn microparticles with dendritic structure were successfully synthesized from the cathode via a simple electrochemical method. It was found through SEM that the morphology and size of Sn particles were related to the experimental parameters, including composition of electrolyte (fluoride ion content, deionized water content), applied voltage, and reaction time. Then dendritic Sn particles were subjected to high-temperature calcination to obtain products that not only had numerous microporous morphologies, but also contained hybrid phases of Sn and SnO2. The abundant catalytic active sites on the surface of the product and the characteristics of Sn-doped P-type semiconductor SnO2 make it an excellent photocatalyst. Especially, when the calcination temperature is 550 °C, the Sn/SnO2 product shows superior photocatalytic activity to other samples toward the degradation of RhB. In conclusion, this work provides a new strategy for the effective degradation of architecture and industrial dyes by a simple electrochemical method.