The present invention relates to a fuel injector (10) which comprises of an outer needle (12) and an inner needle (14). The outer and the inner needles are adapted to inject fuel through an opening (16) provided in the fuel injector (10). The fuel injector includes at least two magnetic element (18a) provided on the outer needle (12) at the end away from the opening (16) and at least one magnetic element (18b) provided on the inner needle (14) at the end away from the opening (16). The magnetic element (18a) of the outer needle (12) and the inner needle (14) is adapted to facilitate opening and closing of the inner needle (14) for injecting fuel. This ensures that, only the required amount of fuel is injected for a required duration of time thereby allowing better fuel efficiency, reduced emissions and preventing unnecessary injection of fuel.