A method for controlling weeds and pest in vegetable crops, the method being designed for the purpose of obtaining and applying a composition to crops that are generally resistant to the action of such composition, further comprising the steps of: a) preparing a composition containing at least D-pinitol in an agronomically suitable medium, with a concentration of D-pinitol ranging between 0.20 mg/ml and 2300 mg/ml and b) applying the resulting composition to the vegetable crop by means of spraying devices, if presented in liquid form, or solid-particle applicator devices, as the case may be, to crops which are generally resistant to D-pinitol. The concentration of D-pinitol may also range between 80 mg/ml and 2000 mg/ml, between 30 mg/ml and 2000 mg/ml, or between 0.2 and 120 mg/mL. The agronomically suitable excipients are selected from the group comprising pH regulators, detergents, preservatives and stabilizers. The composition containing D-Pinitol may come in the form of slow-release granules, liquid, liquid concentrate, tablets and pellets. When D-pinitol is in solid compounds, such as the aforementioned granules, tablets and pellets, the composition to be applied to the crops is obtained by dissolving such solid compounds in a liquid solution, which is preferably applied during the sowing of seed.