Geochemistry of major and trace elements has been used as an important tool for the study of provenance and tectonic and climatic evolution of sedimentary basins. The São Carlos Formation is an Upper Cretaceous unit that lies on the eastern border of the Bauru Basin. Despite the paleontological and paleodepositional studies performed in this unit in the last years, little is known about the correspondence between tectonic and climatic conditions acting during the first stages of sedimentation. The hypothesis of this paper is to evaluate São Carlos and Araçatuba formations and understand the evolution of the eastern border of the basin. Thus, were conducted geochemical studies using X-ray fluorescence on sandstones, siltstones, and shales from the São Carlos Formation. According to the chemical weathering index, which presented values ranging from 57.12 to 71.58%, the oxides of major elements indicate that moderate weathering processes affected the source area, possibly associated with the arid-semiarid climate. Alkaline rocks, granites, gneisses, and metasediments were the main lithotypes of the source area. Ternary diagrams show that the tectonic environment was equivalent to the passive continental margin, coinciding with the Serra do Mar and, secondarily, Alto Paranaíba Uplift regions. Based on major and trace elements, their ratios, and published data on the basin, was elaborated a paleogeographic model of the eastern border of the Bauru Basin, concluding that the source area of the sediments was constituted by intermediate and felsic rocks, sometimes recycled by sedimentary processes.