1 Introduction

With the development of technologies such as artificial intelligence, cloud computing, 5G, and big data, the semiconductor industry is facing severe challenges. Materials with a single function can no longer meet the needs of development. The high integration, multi-function, and miniaturization of equipment are the future trends. Multiferroic materials have a wide range of application prospects in the field of multifunctional materials because of the coupling between various ferrous properties. On this basis, BiFeO3 has a high ferroelectric phase transition temperature and spontaneous polarization strength as high as 100 μC/cm2, becoming a representative of multiferroic materials and has attracted widespread attention. The study has found that the ferroelectricity of BiFeO3 comes from Bi ions compared with the deviation of the center of FeO6 octahedron. This deviation is mainly caused by the hybridization of the lone pair of electrons existing on the 6s orbital of Bi ions with the surrounding oxygen atoms [1,2,3,4,5,6]. In the BFO structure, the magnetic moment of Fe3+ is in a ferromagnetic order in the [111] plane, while the magnetic moments of two adjacent Fe3+ in the [111] direction are arranged in anti-parallel to form an anti-ferromagnetic structure [7]. The spin of the adjacent FeO6 octahedron along the [111] polarization axis causes the tilt of the Fe3+ magnetic moment, while the magnetic moment in the opposite direction cannot be completely offset, resulting in the formation of weak magnetism. In order to push BiFeO3 into practical applications, researchers have made many efforts to improve ferroelectric and ferromagnetic properties [8, 9]. However, the degree of improvement in its ferroelectric and ferromagnetic properties is relatively low. Further research found that doping transition metals at the Fe site could effectively enhance the ferromagnetism of BFO [10], causing more people to focus on the multiple co-doping of A and B sites. Liu et al. [11] successfully prepared BLEFMC films in which La and Er were doped at the Bi site while Mn and Co were doped at the Fe site. The multi-element ion doping reduced the built-in electric field formed by the defects or the defect pairs in the film and decreased the grain size, grain boundary resistance, oxygen vacancy, and the Fe2+ content. A high remanent polarization of 152 μC/cm2 was obtained. However, its ferromagnetic properties (Ms = 2.32 emu/cm3) were still very weak. Chai et al. [12] doped Gd and Sr at the A site, and Mn and Co at the B site of the BFO film. The formation of oxygen vacancies in the BSGxFMC film was inhibited by the multi-element doping, which led to the decrease in the built-in electric field of the depletion layer formed between the gold electrode and the BFO ferroelectric layer. The offset phenomenon of the coercive field was weakened, which revealed the good ferroelectric properties (134 μC/cm2). However, the ferromagnetic properties had not been improved (Ms = 2.64 emu/g). To address this drawback, the combination of magnetic spinel (NiFe2O4, MnFe2O4, CoFe2O4, etc.) and BiFeO3 to form a composite film [13,14,15], the coexistence of ferroelectric and ferromagnetic phases to improve the weak ferromagnetic properties of BFO is an effective choice. Guo et al. [16] prepared BSrSFMC/NFO composite films by doping Sr and Sm at the Bi site while doping Mn and Co at the Fe site, which was then combined with NiFe2O4. It has obtained considerable ferroelectric properties (Pr = 88.28 μC/cm2). However, the ferromagnetic properties (Ms = 35.7 emu/cm3) were significantly lower than those of NiFe2O4 films. Tan et al. [17] prepared Bi0.9Er0.1Fe0.96Mn0.02Co0.02O3/Co1−xMnxFe2O4 (BEFMC/CMxFO) composite film. The doping of Mn ions in the bottom layer caused the structural transformation of the BFO layer to form a weak local electric field, which led to a weak interface effect. Then, the enhanced ferroelectric properties (Pr ∼ 157.8 μC/cm2) and ferromagnetic properties (Ms ∼ 51.47 emu/cm3) were obtained. However, the ferromagnetic performance of the BEFMC/CMxFO composite film was generally lower than that of the BEFMC/CFO composite film. Chai et al. [18] prepared Bi0.88Sr0.03Gd0.09Fe0.94Mn0.04Co0.02O3/Co1−yMnyFe2O4 (BSGFMC/CMyFO) composite film. The structural distortion caused by the doping of Mn2+ ions in the CMyFO film of the magnetic layer induced the transition of the upper BSGFMC film in the composite film from the trigonal structure of the R3c:H and R3m:R space groups to the single R3m:R space group. The enhanced ferroelectric properties (Pr ~ 106 µC/cm2) were obtained and the coercive field (263 kV/cm) was reduced. However, the magnetic properties of the BSGFMC/CMyFO composite film were still worse than those of the BSGFMC/CFO composite film.

Based on the previous researchers, the upper layer of the composite film is multi-doped with BFO and the lower layer is doped with transition metal elements to form a weak local electric field and the weak interface effects, resulting in the enhanced ferroelectric properties. However, the ferromagnetic properties of the composite film are lower than those of the composite film without the magnetic layer doped with transition metal elements. How to improve the ferroelectric performance of the composite film but to enhance the ferromagnetic performance of the composite film is still a problem that needs to be solved in the practical application of BFO. Compared with other technologies, the sol–gel method has the advantages of low cost, simple synthesis equipment, and molecular-level doping [19,20,21]. In this work, the sol–gel method was selected to prepare Bi0.88Gd0.09Sr0.03Fe0.94Mn0.04Co0.02O3/Co1−xNixFe2O4 (BGSFMC/CNxFO) composite film by doping Ni2+ ions into the CFO magnetic layer. Through the formation of internal stress at the film interface, the structure of the upper BGSFMC is induced to enhance the ferromagnetic properties of the composite film while enhancing the ferroelectric properties.

2 Experimental

Bi0.88Gd0.09Sr0.03Fe0.94Mn0.04Co0.02O3/Co1−xNixFe2O4 (BGSFMC/CNxFO, x = 0.0, 0.1, 0.3, 0.5) composite films were fabricated on the FTO/glass substrates by using the sol–gel method. To prepare the BGSFMC precursor solutions, the raw materials of Bi(NO3)3·5H2O (5% excess), Gd(NO3)3·6H2O, Sr(NO3)2, Fe(NO3)3·9H2O, C4H6MnO4·4H2O, and (Co(NO3)2·6H2O were dissolved into ethylene glycol methyl ether and acetic anhydride (the volume ratio was 3:1). The as-prepared precursor solutions were stirred for 2 h and aged for 24 h at room temperature to form the homogeneous precursor solutions (0.3 mol/L). For the preparation of CNxFO precursor solutions, Co(NO3)2·6H2O, C4H6NiO4·4H2O, and Fe(NO3)3·9H2O were dissolved in ethylene glycol methyl ether and acetic anhydride (the volume ratio was 3:1). The as-fabricated precursor solutions were stirred for 2 h and aged for 24 h at room temperature to obtain the homogeneous precursor solutions with the 0.2 mol/L concentration. The BGSFMC/CNxFO composite films were fabricated by spin coating the two precursor solutions onto the FTO/glass substrates. The CNxFO layers were first deposited on the FTO/glass substrates by spin coating at 4000 r/min for 15 s and the wet films were dried at 200 °C for 8 min. Then, the as-prepared dried films were annealed at 600 °C for 20 min to allow crystallization. The above procedures were repeated six times for the CNxFO layer. Finally, BSGFMC layers were deposited on the CNxFO/FTO/glass by spin coating at 4000 r/min for 15 s and the wet films were dried at 200 °C for 8 min. The as-prepared dried films were annealed at 550 °C for 10 min to obtain the crystallized films. The above process was repeated 13 times for fabricate the BGSFMC layer. To test the electric behaviors, an Au top electrode with 0.03 mm2 was sputtered on the surface of the thin films and then annealed at 285 °C for 20 min.

An X-ray diffractometer (XRD, D/MAX-2200, Rigaku Cu) was used to characterize the structure and crystallinity of the film under the conditions of Cu target Kα rays, X-ray wavelength of 0.15418 nm, tube current of 40 mA, and tube voltage of 40 kV. A Horiba JYHR800 Raman system equipped with 532 nm Ar ion laser excitation was used to study the Raman spectra. A field emission scanning electron microscope (FESEM, S4800, Hitachi) was used to observe the surface morphology and the interface contact of the film. An X-ray photoelectron spectroscopy (XPS) of Kratos XSAM800 spectrometer was used to analyze the surface element composition and the ion valence of the sample. An Aix ACCT TF-Analyzer 2000 was used to test the hysteresis loop. The magnetic properties were determined by a superconducting quantum interference magnetic measuring system (SQUID MPMSXL-7).

3 Results and discussions

Figure 1a is the XRD pattern of the BGSFMC/CNxFO composite film. The BGSFMC layer of the composite film conforms to the PDF standard card (JCPDS No. 20-0169), which is a polycrystalline twisted perovskite trigonal structure, and the space group is R3c. The CNxFO layer conforms to the PDF standard card (JCPDS No. 22-1088), which is a cubic structure and the space group is Fd-3m. It indicates that there is no formation of intermediate compounds in the composite film and also indicates that the BFO phase and the CFO phase coexist. With the lower layer of Ni2+-doped CFO, the (1–10) crystal plane diffraction peak and (1–11) crystal plane diffraction peak of the upper layer of BGSFMC are shifted to a small angle. The diffraction peak intensity is significantly enhanced. From the observation of the BGSFMC/CNxFO composite film, there are obvious upper BGSFMC (1–10) crystal plane diffraction peaks, and (1–11) crystal plane diffraction peaks are reverted to higher angles (Fig. 1b and c). This is because the doping of Ni2+ causes the structure of the CNxFO layer to change, and the formation of stress at the interface of the film causes the structure of the upper BGSFMC to change. In S1, the structural changes of the CNxFO films are further explained. Maud software is used to perform Rietveld-refined fitting of XRD data (Fig. 2d and Table 1). The structure of the upper BGSFMC of the BGSFMC/CFO composite film is 98.92% tripartite R3c:H and 1.08% tripartite R3m:R, which is almost a single-phase tripartite R3c:H structure. When the doping amount of Ni2+ is 0.1, the structure of the upper BGSFMC is a two-phase coexistence of tripartite R3c:H (52.44%) and tripartite R3m:R (47.56%). When the doping amount is 0.5, the structure of the upper BGSFMC is almost the single-phase tripartite R3c:H (92.39%). The amount of Ni2+ doping in the lower CFO is increased, the structure of BGSFMC/CNxFO is changed from a single-phase tripartite R3c:H to a tripartite R3c:H and tripartite R3m:R where two phases coexist. Then from the tripartite R3c:H and the tripartite R3m:R, the two phases coexist to the tripartite R3c:H single phase. The Ni2+-doped lower CFO layer can affect the growth orientation of the upper BGSFMC crystal. The Ni2+-doped lower CFO can cause the structural distortion of the crystal and change the Fe–O bond length and the Fe–O–Fe bond angle of the upper BGSFMC layer. Figure 1e is the Raman scattering spectrum of the BGSFMC/CNxFO composite film. The vibration peaks at 148 and 604 cm−1 correspond to the vibration modes of A1-1 and E-9 in the upper BGSFMC of the composite film [22]. The vibration peaks of 237 and 471 cm−1 correspond to the vibration modes of T2g(1) and T2g(2), respectively, of the CNxFO under the composite film [23]. The low-frequency A mode and the high-frequency E mode of BGSFMC are related to the vibration of Bi–O and Fe–O bonds [24]. The doping of Ni2+ in the lower CFO can increase the vibration mode strength of Al-1 and E-9 of the upper BGSFMC of the composite film, which proves that the doping of Ni2+ in the lower CFO induces changes in the structure of the upper BGSFMC, which is consistent with the changes in XRD. These phenomena indicate that the structure change of the lower layer CNxFO can be controlled by doping Ni2+ to control the transformation of the upper-layer BGSFMC structure.

Fig. 1
figure 1

The structure of BGSFMC/CNxFO composite film a XRD; b 31.5°–33° XRD; c 39°–41° XRD; d refined graph; e Raman spectrum

Fig. 2
figure 2

The SEM of the BGSFMC/CNxFO composite film and the corresponding AFM. The inset is the grain size distribution and the cross-sectional SEM

Table 1 Structural parameters of the BGSFMC/CNxFO composite film

Figure 2 shows the SEM of the BGSFMC/CNxFO composite film and the corresponding AFM. Obviously, the BGSFMC/CNxFO composite film shows a relatively dense and uniform morphology. The average grain size (Dgs) of the BGSFMC/CNxFO composite film is 0.12, 0.18, 0.21, and 0.18 µm, respectively. The inset of Fig. 2b is a cross-sectional view of the BGSFMC/CN0.1FO composite film. The three-layer structure can be clearly observed: the upper BGSFMC layer, the lower CNxFO layer, and the SnO2 substrate. The interface between the three layers is clear. The thickness of the BGSFMCO/CN0.1FO composite film is 705 nm. The AFM test range is 2 μm × 2 μm. With the doping of Ni2+, the average particle size of the BGSFMC/CNxFO composite film is about 100 nm, 150 nm, 200 nm, and 160 nm, which are consistent with the SEM analysis. The increase in the average particle size means that the ferroelectric domain size of the film increases. The increase of peak-like protrusions on the surface of the film indicates that the surface roughness of the film has increased and the pores have increased. The change of surface morphology and grain size with Ni2+ doping is related to the influence of internal stress on grain evolution. The doping of Ni2+ causes internal stress to cause the grain growth of the upper layer of the film, and the structure of the film is distorted, providing space for changes in the Fe–O–Fe bond angle and Fe–O bond length.

Figure 3 shows the XPS spectrum of the BGSFMC/CNxFO composite film. From Fig. 3a, it can clearly be found that there are the characteristic peaks of Bi, Gd, Sr, Fe, Mn, Co, and O elements. Figure 3b shows the spectrum of Fe-2p orbitals. Fitting by Avantage software confirms that Fe-2p3/2 characteristic peak is split into two peaks: Fe3+ and Fe2+. The ratio of Fe3+ and Fe2+ content in the BGSFMC/CNxFO (x = 0.0–0.5) composite film is calculated to be 11:89, 15:85, 18:82, and 20:80, respectively. Figures 3c and d are the characteristic peak patterns of Co-2p and Mn-2p. There are both Co3+/Co2+ and Mn3+/Mn2+ in the composite film. The ratios of Co3+ and Co2+ in the BGSFMC/CNxFO (x = 0.0–0.5) composite film are 81:19, 81:19, 86:14, and 87:13, respectively. The ratios of Mn3+/Mn2+ are 20:80, 29: 71, 25:75, and 20:80, respectively. The existence of Mn3+/Mn2+ and Co3+/Co2+ can maintain the charge balance in the film. It can also inhibit the conversion from Fe3+ to Fe2+ and the formation of oxygen vacancies. This mechanism can be expressed by the following defect reaction Eqs. (1), (2), (3), and (4) [25]:

Fig. 3
figure 3

a XPS full spectra of the BGSFMC/CNxFO composite film (x = 0.0–0.5), b Fe-2p, c Co-2p, d Mn-2p, and e O1s spectra

$$2{\rm{Mn}}^{2+}+{V}_{\rm{O}}^{\cdot \cdot }\leftrightarrow 2{\rm{Mn}}^{3+}$$
(1)
$$2{\rm{Co}}^{2+}+{V}_{\rm{O}}^{\cdot \cdot }\leftrightarrow 2{\rm{Co}}^{3+}$$
(2)
$${\rm{Mn}}^{3+}+{\rm{Fe}}^{2+}\leftrightarrow {\rm{Mn}}^{2+}+{\rm{Fe}}^{3+}$$
(3)
$${\rm{Co}}^{3+}+{\rm{Fe}}^{2+}\leftrightarrow {\rm{Co}}^{2+}+{\rm{Fe}}^{3+}$$
(4)

Figure 3e shows the O1s characteristic peak spectrum of the BGSFMC/CNxFO composite film XPS. The ratios of O2− and oxygen vacancies in the BGSFMC/CNxFO composite film (x = 0.0–0.5) are 92.18:7.82, 92.75:7.25, 96.47:3.53, and 97.23:2.67, respectively, indicating that the oxygen vacancy of the composite film is significantly reduced. Through the Ni2+-doped CNxFO film, the Ni–O bond is formed in the lower layer, which changes the translational movement of octahedral FeO4 and forms the internal stress in the film interface. It promotes the growth of the upper BGSFMC crystal grains, inhibits the conversion from Fe3+ to Fe2+ in the upper BGSFMC crystal, and reduces oxygen vacancies.

Figure 4 shows the hysteresis loop of CNxFO film and BGSFMC/CNxFO composite film at room temperature. The ferromagnetic properties of the composite film are mainly derived from the underlying magnetic material. As shown in Fig. 4a, the residual magnetization is 124.43 emu/cm3, 126.30 emu/cm3, 105.88 emu/cm3, and 122.72 emu/cm3, respectively. With the incorporation of Ni2+, the magnetic properties of the underlying CNxFO film are significantly reduced (Fig. 4a). However, the magnetic properties of the BGSFMC/CNxFO composite film show a significant enhancement, as shown in Fig. 4b, the residual magnetization is 29.74 emu/cm3, 56.94 emu/cm3, 51.56 emu/cm3, and 48.29 emu/cm3. The results show that adjusting the structure of the lower magnetic layer can enhance the ferromagnetic properties of the BGSFMC/CNxFO composite film. After the Ni2+-doped CNxFO magnetic bottom layer is combined with the upper BGSFMC, the film interface generates stress, which makes the film phase structure change from a single R3c:H phase to the coexistence of R3c:H and R3m:R phases. This results in an increase in the grain size and porosity of the upper BGSFMC layer, which provides a space for changes in the Fe–O bond length and Fe–O–Fe bond angle of the BGSFMC layer. The changes of the Fe–O bond length and the Fe–O–Fe bond angle cause the spin tilt [26], resulting in the change of the octahedral tilt, which further limits the spatial modulation and releases the magnetism [27]. The tilt of Fe3+ ion spin is related to the Dzyaloshinskii–Moriya (DM) interaction energy of Fe3+ ion (HDM):

$${H}_{\rm{DM}}=\sum_{n=0}^{n}\underset{{D}_{n}}{\to }\cdot (\underset{{S}_{0}}{\to }\times \underset{{S}_{n}}{\to }),$$
(5)

where \({D}_{n}={V}_{0}[{\underset{r}{\to }}_{n-0}\times {\underset{r}{\to }}_{n-n}]\) is the interaction parameter of DM interaction, \({\underset{r}{\to }}_{n-0}\) and \({\underset{r}{\to }}_{n-n}\) are the position vectors of the closest magnetic ion from the nth O ion to the closest Fe ion, V0 is the microscopic constant. \(\underset{{S}_{0}}{\to }\) and \(\underset{{S}_{n}}{\to }\) are the vectors of the magnetic moments of two Fe ions [28]. For the ideal state of the perovskite structure, the Fe–O–Fe bond angle is equal to 180°, so the \({[\underset{r}{\to }}_{n-0}\times {\underset{r}{\to }}_{n-n}]\) factor is zero [29] and the antisymmetric exchange energy term HDM is zero. However, if the Fe–O–Fe bond angle starts to deviate from the ideal state of 180°, HDM will increase. Therefore, the Fe–O–Fe bond angle and Fe–O bond length of the BGSFMC/CNxFO composite film are changed with the doping of Ni2+ (as shown in Table 1), which leads to an increase in HDM and in turn increases magnetization and enhances the magnetic properties. After the Ni2+-doped CNxFO magnetic bottom layer is combined with the upper BGSFMC, stress is generated at the film interface, which causes the grain growth of the upper BGSFMC. The change in grain size releases more magnetic moments, causing the composite film to increase magnetically. The increase of Fe3+ and the coexistence of Mn and Co ions make the super exchange of Fe–O–Fe stronger [30]. Therefore, after the Ni2+-doped CNxFO magnetic bottom layer is combined with the upper BGSFMC, stress occurs at the film interface, which increases the grain size and porosity of the BGSFMC layer. This provides a space for changes in the Fe–O bond length and Fe–O–Fe bond angle of the BGSFMC layer.

Fig. 4
figure 4

The hysteresis loop of the CNxFO film (a), the hysteresis loop of the BGSFMC/CNxFO composite film (b)

For the BGSFMC/CNxFO composite film, a nonlinear capacitance–voltage (CV) butterfly curve was observed (Fig. 5), which indicates that the films have ferroelectric properties and these CV butterfly curves are related to the ferroelectric conversion process [12]. The BGSFMC/CFO film shows a deformed CV butterfly curve, which indicates that there is a large obstacle in the domain that inhibits the inversion of the ferroelectric domain. The larger obstacles in the domain are related to the high oxygen vacancy defect concentration and defect complexes in the BGSFMC/CFO composite film (Fig. 5a). A typical symmetrical CV butterfly curve is detected in the BGSFMC/CN0.1FO composite film, which indicates that the films have good ferroelectric properties [11]. The BGSFMC/CN0.1FO composite film has similar capacitance values at voltages of 4 V and − 4 V, which are 1.11267E−10 F and 1.10628E−10 F (Fig. 5b), respectively. This indicates that the oxygen vacancy concentration and defect complexes are reduced after Ni2+ doping, resulting in increased spontaneous polarization. The reduction of intra-domain defects makes the ferroelectric domains easier to flip under the action of an external electric field. These results indicate that the doping of Ni2+ can effectively reduce intra-domain defects and enhance the spontaneous polarization.

Fig. 5
figure 5

CV characteristic curve of the BGSFMC/CNxFO composite film

Figure 6 shows the hysteresis loop, the polarization reversal current curve, and the differential graph of the hysteresis loop of the BGSFMC/CNxFO composite film under the test conditions of the test frequency of 1 kHz and 25 V voltage. The electrical hysteresis loop of the BGSFMC/CFO composite film presents a “swelling” state. The polarization reversal current curve shows an obvious “lift” peak. The residual polarization value is 58.97 μC/cm2. The polarization leakage current has obvious “towering.” The polarization leakage current (IL) is 0.20 mA. The polarization reversal current (Is) is 0.26 mA, the leakage current caused by leakage capacitance (CL) is 7.83 μC/cm2, and the ferroelectric domain switching capacitance peak value (CS) is 14.91 μF/cm2 (Fig. 6a). The residual polarization of the BGSFMC/CNxFO composite film increases to 104–112 μC/cm2. The polarization switching current (Is) is 0.06–0.08 mA while the IL is decreased to 0.0144–0.0152 mA. The leakage capacitance (CL) is reduced to 4.73–6.89 μF/cm2. The peak (Cs) of the flip capacitor is enhanced to 19.32–24.9 μF/cm2 (Fig. 6b–d). The Ni-doped BGSFMC/CNxFO composite films have reduced oxygen vacancies and significantly improved ferroelectric domain switching ability and ferroelectric properties. The intrinsic polarization is enhanced, which is consistent with the results of enhance the spontaneous polarization in Fig. 5b.

Fig. 6
figure 6

Differential diagrams of the electric hysteresis loop, polarization current loop, and electric hysteresis loop of the BGSFMC/CNxFO composite film

Figure 7 is a graph showing the relationship between the ferroelectric domain flipping and the ferroelectric properties of the BGSFMC/CNxFO composite films. There are more oxygen vacancies and defect complexes in the BSGFMC/CFO composite film, which will make it difficult for some ferroelectric domains to flip and there is a phenomenon of pseudo polarization. As shown in Fig. 7a, the film shows a deformed hysteresis loop, an asymmetric CV curve, and a non-sharp reverse current peak. These confirm that the BGSFMC/CFO composite film has the large leakage conductance and extrinsic polarization, that is, the polarization of BGSFMC/CFO is divided into two parts: iron polarization and leakage conduction polarization. The BGSFMC/CFO composite film has a large number of oxygen vacancies due to its own crystal defects and small grain size, while the oxygen vacancies are mainly concentrated on the grain boundaries. The oxygen vacancies gathering on the grain boundary hinder the transport of electrons on the grain boundary. In addition, due to the existence of defect pairs formed by oxygen vacancies and ions, a built-in electric field is formed inside the film. Then with the combined action of the interface energy and in the built-in electric field, the movement and turnover of the ferroelectric domains are suppressed. With the Ni doping, the structure in the BGSFMC/CNxFO composite film is distorted. The reduction of oxygen vacancies in the film leads to a decrease in defect complexes and an increase in Fe3+. The ferroelectric domains of the BGSFMC/CNxFO composite film are almost completely reversed under the applied voltage. The BGSFMC/CN0.1FO composite film exhibits a large residual polarization value, a compact and symmetrical CV curve, and a sharper polarization current reversal peak (Fig. 7b). Therefore, the Ni-doped CFO magnetic underlayer can improve the domain switching ability of the BGSFMC/CNxFO composite film and enhance the intrinsic ferroelectric properties.

Fig. 7
figure 7

The relationship between the ferroelectric domain switching and the ferroelectric properties of the BGSFMC/CNxFO composite thin films

4 Conclusion

In this work, the BGSFMC/CNxFO (x = 0.1–0.5) composite film is successfully prepared by the sol–gel method. Ni ions are doped into the CNxFO magnetic underlayer to form internal stress in the film interface, which induces the structural distortion of the upper BGSFMC. Ni doping causes changes in the Fe–O–Fe bond angle and the Fe–O bond length of the upper BGSFMC, causing spin tilt and releasing magnetism. The interface internal stress can effectively reduce the oxygen vacancy concentration of the upper BGSFMC, which inhibits the conversion from Fe3+ to Fe2+ and enhances the Fe–O–Fe super exchange interaction. Compared with the BGSFMC/CFO composite film, the ferromagnetic properties of the BGSFMC/CNxFO composite film are significantly enhanced, and the residual magnetization of 48.29–56.94 emu/cm3 is obtained. Meanwhile, the doping of Ni ions into the CNxFO layer inhibits the formation of the defect complexes in the BGSFMC layer. The residual polarization value of the BGSFMC/CNxFO composite film is increased to 104–112 μC/cm2. The polarization reversal current (Is) is 0.06–0.08 mA. The domain switching ability and the ferroelectric performance are significantly improved and the intrinsic polarization performance is also enhanced. Ni ions are doped into the CNxFO magnetic underlayer to induce structural changes in the upper BGSFMC, which enhances the ferroelectric properties of the composite film while enhancing the ferromagnetic properties. This provides more choice materials for multifunctional, high-performance storage devices and photoelectric sensors.